Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001421/0.001421, allocations: 114.6 kB / 17.07 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001465/0.001465, allocations: 189.4 kB / 18 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.391/1.391, allocations: 222.9 MB / 241.7 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001436/0.001436, allocations: 47.94 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2538/0.2552, allocations: 49.44 MB / 400.3 MB, free: 8.449 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.00437/0.2596, allocations: 2.894 MB / 403.2 MB, free: 5.93 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001252/0.2609, allocations: 0.6973 MB / 403.9 MB, free: 5.227 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001391/0.2611, allocations: 7.938 kB / 403.9 MB, free: 5.219 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001816/0.2612, allocations: 47.5 kB / 403.9 MB, free: 5.172 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001962/0.2615, allocations: 95.19 kB / 404 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003078/0.2618, allocations: 115.8 kB / 404.1 MB, free: 4.965 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004413/0.2622, allocations: 394.4 kB / 404.5 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002514/0.2625, allocations: 131.9 kB / 404.6 MB, free: 4.445 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001961/0.2627, allocations: 143.4 kB / 404.8 MB, free: 4.305 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002274/0.2629, allocations: 179.2 kB / 404.9 MB, free: 4.129 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.898e-05/0.263, allocations: 40 kB / 405 MB, free: 4.09 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.36e-05/0.2631, allocations: 36 kB / 405 MB, free: 4.055 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.846e-05/0.2632, allocations: 75.75 kB / 405.1 MB, free: 3.98 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001716/0.2633, allocations: 163.2 kB / 405.3 MB, free: 3.82 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004718/0.2638, allocations: 393.4 kB / 405.6 MB, free: 3.438 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.612e-06/0.2638, allocations: 11.94 kB / 405.7 MB, free: 3.426 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.2638, allocations: 0 / 405.7 MB, free: 3.426 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.918e-06/0.2639, allocations: 0 / 405.7 MB, free: 3.426 MB / 318.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.001391/0.2652, allocations: 0.6883 MB / 406.3 MB, free: 2.684 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.382e-05/0.2653, allocations: 12.03 kB / 406.4 MB, free: 2.672 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.021e-05/0.2654, allocations: 62.72 kB / 406.4 MB, free: 2.602 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.058e-05/0.2655, allocations: 32.75 kB / 406.4 MB, free: 2.57 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004352/0.2659, allocations: 287.8 kB / 406.7 MB, free: 2.25 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.946e-05/0.2659, allocations: 20.94 kB / 406.7 MB, free: 2.23 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.136e-05/0.266, allocations: 32.31 kB / 406.8 MB, free: 2.199 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007062/0.2667, allocations: 323.7 kB / 407.1 MB, free: 1.875 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.197e-05/0.2667, allocations: 0 / 407.1 MB, free: 1.875 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.903e-05/0.2667, allocations: 12 kB / 407.1 MB, free: 1.863 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.969e-06/0.2668, allocations: 8 kB / 407.1 MB, free: 1.855 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008119/0.2676, allocations: 270.1 kB / 407.4 MB, free: 1.59 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001861/0.2695, allocations: 1.142 MB / 408.5 MB, free: 368 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008205/0.2703, allocations: 214.5 kB / 408.7 MB, free: 144 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003154/0.2706, allocations: 80.8 kB / 408.8 MB, free: 60 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.3e-05/0.2707, allocations: 3.984 kB / 408.8 MB, free: 56 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004724/0.2711, allocations: 169.1 kB / 409 MB, free: 15.87 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.493e-06/0.2711, allocations: 0 / 409 MB, free: 15.87 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.00134/0.2725, allocations: 407.2 kB / 409.4 MB, free: 15.45 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.008e-05/0.2726, allocations: 85.08 kB / 409.5 MB, free: 15.34 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003902/0.273, allocations: 328.5 kB / 409.8 MB, free: 15.02 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.799e-05/0.273, allocations: 29.7 kB / 409.8 MB, free: 14.98 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001627/0.2732, allocations: 215.9 kB / 410 MB, free: 14.77 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.628e-05/0.2732, allocations: 35.73 kB / 410.1 MB, free: 14.73 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.927e-05/0.2733, allocations: 53.83 kB / 410.1 MB, free: 14.67 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.2735, allocations: 338.8 kB / 410.4 MB, free: 14.33 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003727/0.2739, allocations: 108.1 kB / 410.5 MB, free: 14.22 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004292/0.2743, allocations: 207.7 kB / 410.7 MB, free: 13.96 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007695/0.2751, allocations: 331.9 kB / 411.1 MB, free: 13.58 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.2751, allocations: 0 / 411.1 MB, free: 13.58 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001003/0.2761, allocations: 406.4 kB / 411.5 MB, free: 13.17 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.255e-05/0.2761, allocations: 41.77 kB / 411.5 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.183e-05/0.2762, allocations: 7.984 kB / 411.5 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001732/0.2763, allocations: 24.84 kB / 411.5 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002758/0.2766, allocations: 63.89 kB / 411.6 MB, free: 13.03 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001196/0.2778, allocations: 1.406 MB / 413 MB, free: 11.47 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003466/0.2782, allocations: 63.8 kB / 413.1 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.754e-05/0.2782, allocations: 15.98 kB / 413.1 MB, free: 11.39 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.0001651/0.2784, allocations: 147.2 kB / 413.2 MB, free: 11.24 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.988e-05/0.2784, allocations: 27.86 kB / 413.3 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.933e-05/0.2785, allocations: 26.61 kB / 413.3 MB, free: 11.19 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.2785, allocations: 3.984 kB / 413.3 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.2785, allocations: 7.938 kB / 413.3 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.169e-06/0.2785, allocations: 4.375 kB / 413.3 MB, free: 11.17 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004789/0.279, allocations: 447.2 kB / 413.7 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/0.279, allocations: 4 kB / 413.7 MB, free: 10.67 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001745/0.2792, allocations: 31.97 kB / 413.8 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001063/0.2793, allocations: 44.67 kB / 413.8 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.475e-05/0.2794, allocations: 4 kB / 413.8 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001088/0.2804, allocations: 1.383 MB / 415.2 MB, free: 9.066 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.2805, allocations: 3.938 kB / 415.2 MB, free: 9.062 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007703/0.2812, allocations: 274.5 kB / 415.5 MB, free: 8.77 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.794e-05/0.2813, allocations: 104.9 kB / 415.6 MB, free: 8.648 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.174e-05/0.2814, allocations: 11.98 kB / 415.6 MB, free: 8.637 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002283/0.2816, allocations: 23.97 kB / 415.6 MB, free: 8.613 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.867e-05/0.2817, allocations: 19.92 kB / 415.6 MB, free: 8.594 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.305e-05/0.2817, allocations: 4 kB / 415.6 MB, free: 8.59 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002512/0.282, allocations: 231.1 kB / 415.9 MB, free: 8.367 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.282, allocations: 0 / 415.9 MB, free: 8.367 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003428/0.2823, allocations: 67.89 kB / 415.9 MB, free: 8.301 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.001128/0.2835, allocations: 0.8206 MB / 416.7 MB, free: 7.441 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001071/0.2845, allocations: 406 kB / 417.1 MB, free: 7.02 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2846, allocations: 0 / 417.1 MB, free: 7.02 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004879/0.2851, allocations: 223.5 kB / 417.4 MB, free: 6.789 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003303/0.2854, allocations: 46.5 kB / 417.4 MB, free: 6.746 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005086/0.2905, allocations: 3.149 MB / 420.6 MB, free: 3.402 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004098/0.2909, allocations: 0.7558 MB / 421.3 MB, free: 2.621 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001343/0.2911, allocations: 34.95 kB / 421.3 MB, free: 2.586 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001476/0.2912, allocations: 87.41 kB / 421.4 MB, free: 2.504 MB / 334.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2912, allocations: 0 / 421.4 MB, free: 2.504 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03225/0.3235, allocations: 6.078 MB / 427.5 MB, free: 12.58 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.842/10.17, allocations: 14.8 kB / 427.5 MB, free: 12.57 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches