Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001204/0.001204, allocations: 118.7 kB / 17.78 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001144/0.001144, allocations: 203.9 kB / 18.74 MB, free: 4.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.538/1.538, allocations: 227.4 MB / 246.9 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 63.89 kB / 358.3 MB, free: 13.33 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2716/0.2728, allocations: 50.54 MB / 408.8 MB, free: 1.465 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004282/0.2772, allocations: 2.901 MB / 411.7 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001562/0.2787, allocations: 0.7284 MB / 412.4 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003072/0.2791, allocations: 8 kB / 412.4 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002344/0.2794, allocations: 55.5 kB / 412.5 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003351/0.2797, allocations: 95.19 kB / 412.6 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00037/0.2801, allocations: 107.8 kB / 412.7 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005293/0.2806, allocations: 398.5 kB / 413.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002669/0.2809, allocations: 135.8 kB / 413.2 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000263/0.2812, allocations: 151.4 kB / 413.4 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002741/0.2815, allocations: 175.2 kB / 413.5 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.144e-05/0.2816, allocations: 40 kB / 413.6 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.587e-05/0.2816, allocations: 40 kB / 413.6 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.799e-05/0.2817, allocations: 79.69 kB / 413.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002066/0.2819, allocations: 163.1 kB / 413.8 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004609/0.2824, allocations: 397.4 kB / 414.2 MB, free: 12 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.2824, allocations: 0 / 414.2 MB, free: 12 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.2824, allocations: 0 / 414.2 MB, free: 12 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.423e-05/0.2825, allocations: 0 / 414.2 MB, free: 12 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001447/0.2839, allocations: 0.6923 MB / 414.9 MB, free: 11.26 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.34e-05/0.284, allocations: 12.03 kB / 414.9 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.751e-05/0.2841, allocations: 62.72 kB / 415 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.698e-05/0.2841, allocations: 40.7 kB / 415 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004747/0.2846, allocations: 291.8 kB / 415.3 MB, free: 10.81 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.519e-05/0.2847, allocations: 20.94 kB / 415.3 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.731e-05/0.2847, allocations: 28.36 kB / 415.4 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007265/0.2854, allocations: 319.8 kB / 415.7 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.2855, allocations: 0 / 415.7 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.178e-05/0.2855, allocations: 12 kB / 415.7 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.04e-05/0.2855, allocations: 4 kB / 415.7 MB, free: 10.42 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008261/0.2864, allocations: 278 kB / 416 MB, free: 10.15 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001887/0.2883, allocations: 1.138 MB / 417.1 MB, free: 8.922 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000857/0.2891, allocations: 202.5 kB / 417.3 MB, free: 8.715 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003147/0.2895, allocations: 100.9 kB / 417.4 MB, free: 8.613 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.363e-05/0.2895, allocations: 3.984 kB / 417.4 MB, free: 8.609 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004214/0.2899, allocations: 157 kB / 417.6 MB, free: 8.438 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.673e-06/0.2899, allocations: 0 / 417.6 MB, free: 8.438 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.001295/0.2912, allocations: 415.1 kB / 418 MB, free: 8.004 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.385e-05/0.2913, allocations: 85.09 kB / 418.1 MB, free: 7.902 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003573/0.2917, allocations: 328.5 kB / 418.4 MB, free: 7.582 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.736e-05/0.2917, allocations: 29.7 kB / 418.4 MB, free: 7.547 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000151/0.2919, allocations: 211.9 kB / 418.6 MB, free: 7.336 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.863e-05/0.2919, allocations: 35.73 kB / 418.6 MB, free: 7.301 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001143/0.292, allocations: 57.88 kB / 418.7 MB, free: 7.234 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001334/0.2922, allocations: 338.8 kB / 419 MB, free: 6.895 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003464/0.2925, allocations: 92.16 kB / 419.1 MB, free: 6.805 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004217/0.293, allocations: 230.9 kB / 419.3 MB, free: 6.527 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008431/0.2938, allocations: 323.9 kB / 419.7 MB, free: 6.152 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/0.2938, allocations: 4 kB / 419.7 MB, free: 6.148 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001019/0.2949, allocations: 403.8 kB / 420.1 MB, free: 5.738 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.285e-05/0.2949, allocations: 33.7 kB / 420.1 MB, free: 5.699 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.898e-06/0.2949, allocations: 4 kB / 420.1 MB, free: 5.695 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001941/0.2951, allocations: 36.98 kB / 420.1 MB, free: 5.656 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002712/0.2954, allocations: 59.89 kB / 420.2 MB, free: 5.598 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001125/0.2965, allocations: 1.406 MB / 421.6 MB, free: 4.043 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003482/0.2969, allocations: 51.75 kB / 421.6 MB, free: 3.992 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.55e-05/0.2969, allocations: 16 kB / 421.7 MB, free: 3.977 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001669/0.2971, allocations: 157.7 kB / 421.8 MB, free: 3.812 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.094e-05/0.2972, allocations: 31.8 kB / 421.9 MB, free: 3.781 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.098e-05/0.2972, allocations: 30.61 kB / 421.9 MB, free: 3.75 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.2972, allocations: 0 / 421.9 MB, free: 3.75 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.2972, allocations: 3.938 kB / 421.9 MB, free: 3.746 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.2972, allocations: 0 / 421.9 MB, free: 3.746 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004673/0.2977, allocations: 451.2 kB / 422.3 MB, free: 3.246 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.2977, allocations: 4.031 kB / 422.3 MB, free: 3.242 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000171/0.2979, allocations: 27.97 kB / 422.4 MB, free: 3.215 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001172/0.298, allocations: 32.77 kB / 422.4 MB, free: 3.18 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.33e-05/0.2981, allocations: 7.938 kB / 422.4 MB, free: 3.172 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001095/0.2992, allocations: 1.391 MB / 423.8 MB, free: 1.645 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.2992, allocations: 160 / 423.8 MB, free: 1.645 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007509/0.2999, allocations: 274.8 kB / 424.1 MB, free: 1.352 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001047/0.3001, allocations: 109 kB / 424.2 MB, free: 1.227 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.196e-05/0.3001, allocations: 11.92 kB / 424.2 MB, free: 1.215 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002195/0.3003, allocations: 23.97 kB / 424.2 MB, free: 1.191 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.198e-05/0.3004, allocations: 27.86 kB / 424.2 MB, free: 1.164 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.208e-05/0.3004, allocations: 4 kB / 424.2 MB, free: 1.16 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002733/0.3007, allocations: 231.1 kB / 424.5 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3007, allocations: 0 / 424.5 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003747/0.3011, allocations: 71.89 kB / 424.5 MB, free: 0.8672 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00127/0.3024, allocations: 0.8046 MB / 425.3 MB, free: 28 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001119/0.3035, allocations: 406.4 kB / 425.7 MB, free: 15.61 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/0.3035, allocations: 4.312 kB / 425.7 MB, free: 15.6 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004717/0.304, allocations: 218.5 kB / 425.9 MB, free: 15.38 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003692/0.3044, allocations: 53.25 kB / 426 MB, free: 15.32 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005002/0.3094, allocations: 3.157 MB / 429.2 MB, free: 11.97 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003688/0.3098, allocations: 0.7518 MB / 429.9 MB, free: 11.19 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001473/0.31, allocations: 34.97 kB / 429.9 MB, free: 11.16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001481/0.3101, allocations: 83.41 kB / 430 MB, free: 11.08 MB / 350.1 MB Notification: Performance of SimCode: time 8.21e-07/0.3101, allocations: 0 / 430 MB, free: 11.08 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0245/0.3346, allocations: 6.085 MB / 436.1 MB, free: 5.145 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.303/9.638, allocations: 11.48 kB / 436.1 MB, free: 5.137 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Comparator.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches