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.001126/0.001127, allocations: 114 kB / 17.06 MB, free: 6.086 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.001119/0.001119, allocations: 195 kB / 17.99 MB, free: 5.18 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.272/1.272, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009681/0.0009682, allocations: 47.92 kB / 350.8 MB, free: 3.711 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2454/0.2464, allocations: 49.43 MB / 400.3 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.003848/0.2503, allocations: 2.892 MB / 403.1 MB, free: 5.883 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001195/0.2515, allocations: 0.6934 MB / 403.8 MB, free: 5.184 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001407/0.2516, allocations: 11.94 kB / 403.9 MB, free: 5.172 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001637/0.2518, allocations: 47.5 kB / 403.9 MB, free: 5.125 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001946/0.252, allocations: 95.19 kB / 404 MB, free: 5.031 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003048/0.2523, allocations: 119.7 kB / 404.1 MB, free: 4.914 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004066/0.2528, allocations: 394.5 kB / 404.5 MB, free: 4.527 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002394/0.253, allocations: 127.9 kB / 404.6 MB, free: 4.398 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001699/0.2532, allocations: 151.4 kB / 404.8 MB, free: 4.25 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001926/0.2534, allocations: 179.2 kB / 404.9 MB, free: 4.074 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.425e-05/0.2534, allocations: 40 kB / 405 MB, free: 4.035 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.91e-05/0.2535, allocations: 36 kB / 405 MB, free: 4 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.884e-05/0.2536, allocations: 75.7 kB / 405.1 MB, free: 3.926 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001519/0.2537, allocations: 159.2 kB / 405.2 MB, free: 3.77 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000434/0.2542, allocations: 401.3 kB / 405.6 MB, free: 3.379 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.2542, allocations: 4 kB / 405.6 MB, free: 3.375 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.2542, allocations: 0 / 405.6 MB, free: 3.375 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.2542, allocations: 0 / 405.6 MB, free: 3.375 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.001345/0.2556, allocations: 0.6883 MB / 406.3 MB, free: 2.633 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/0.2556, allocations: 16.03 kB / 406.3 MB, free: 2.617 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.969e-05/0.2557, allocations: 58.73 kB / 406.4 MB, free: 2.551 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.633e-05/0.2558, allocations: 32.75 kB / 406.4 MB, free: 2.52 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004301/0.2562, allocations: 295.7 kB / 406.7 MB, free: 2.191 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.021e-05/0.2562, allocations: 20.94 kB / 406.7 MB, free: 2.172 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.156e-05/0.2563, allocations: 24.38 kB / 406.8 MB, free: 2.148 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006663/0.257, allocations: 323.8 kB / 407.1 MB, free: 1.824 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.257, allocations: 0 / 407.1 MB, free: 1.824 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.765e-05/0.257, allocations: 12 kB / 407.1 MB, free: 1.812 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.695e-06/0.257, allocations: 8 kB / 407.1 MB, free: 1.805 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007423/0.2578, allocations: 282 kB / 407.4 MB, free: 1.527 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001702/0.2595, allocations: 1.134 MB / 408.5 MB, free: 312 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007512/0.2602, allocations: 206.6 kB / 408.7 MB, free: 96 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002939/0.2606, allocations: 92.78 kB / 408.8 MB, free: 0 / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.878e-05/0.2606, allocations: 0 / 408.8 MB, free: 0 / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004108/0.261, allocations: 165.1 kB / 409 MB, free: 15.82 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.283e-06/0.261, allocations: 0 / 409 MB, free: 15.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.001249/0.2623, allocations: 415.1 kB / 409.4 MB, free: 15.39 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.287e-05/0.2623, allocations: 77.11 kB / 409.4 MB, free: 15.29 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003297/0.2627, allocations: 328.5 kB / 409.8 MB, free: 14.96 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.416e-05/0.2627, allocations: 33.73 kB / 409.8 MB, free: 14.93 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001273/0.2628, allocations: 211.9 kB / 410 MB, free: 14.71 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.864e-05/0.2629, allocations: 31.75 kB / 410 MB, free: 14.68 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.659e-05/0.263, allocations: 57.88 kB / 410.1 MB, free: 14.62 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001065/0.2631, allocations: 334.8 kB / 410.4 MB, free: 14.28 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003385/0.2634, allocations: 104.2 kB / 410.5 MB, free: 14.18 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003794/0.2638, allocations: 215.6 kB / 410.7 MB, free: 13.91 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006997/0.2645, allocations: 338.2 kB / 411.1 MB, free: 13.53 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.2645, allocations: 0 / 411.1 MB, free: 13.53 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009053/0.2655, allocations: 399.7 kB / 411.5 MB, free: 13.12 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.813e-05/0.2655, allocations: 37.7 kB / 411.5 MB, free: 13.08 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.2655, allocations: 4 kB / 411.5 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001709/0.2657, allocations: 37.08 kB / 411.5 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002656/0.266, allocations: 59.89 kB / 411.6 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001005/0.267, allocations: 1.414 MB / 413 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003432/0.2673, allocations: 55.7 kB / 413.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.532e-05/0.2674, allocations: 16.09 kB / 413.1 MB, free: 11.34 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.0001627/0.2675, allocations: 149.7 kB / 413.2 MB, free: 11.19 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.137e-05/0.2676, allocations: 27.84 kB / 413.2 MB, free: 11.16 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.679e-05/0.2676, allocations: 26.61 kB / 413.3 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-06/0.2676, allocations: 0 / 413.3 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.2677, allocations: 3.938 kB / 413.3 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.2677, allocations: 4 kB / 413.3 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004914/0.2682, allocations: 455.2 kB / 413.7 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.2682, allocations: 8 kB / 413.7 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001694/0.2684, allocations: 31.91 kB / 413.8 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001004/0.2685, allocations: 28.78 kB / 413.8 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.501e-05/0.2685, allocations: 3.984 kB / 413.8 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009853/0.2695, allocations: 1.399 MB / 415.2 MB, free: 9.008 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.2695, allocations: 0 / 415.2 MB, free: 9.008 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007729/0.2703, allocations: 274.8 kB / 415.5 MB, free: 8.715 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.868e-05/0.2704, allocations: 101 kB / 415.6 MB, free: 8.598 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.022e-05/0.2704, allocations: 8 kB / 415.6 MB, free: 8.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002211/0.2706, allocations: 19.97 kB / 415.6 MB, free: 8.57 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.493e-05/0.2707, allocations: 23.91 kB / 415.6 MB, free: 8.547 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.468e-05/0.2707, allocations: 12 kB / 415.6 MB, free: 8.535 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002414/0.271, allocations: 227.1 kB / 415.8 MB, free: 8.316 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.271, allocations: 3.938 kB / 415.9 MB, free: 8.312 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003542/0.2714, allocations: 67.89 kB / 415.9 MB, free: 8.246 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.001084/0.2724, allocations: 0.8206 MB / 416.7 MB, free: 7.387 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00102/0.2735, allocations: 410.6 kB / 417.1 MB, free: 6.961 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.2735, allocations: 0 / 417.1 MB, free: 6.961 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005166/0.274, allocations: 214.5 kB / 417.3 MB, free: 6.738 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003641/0.2744, allocations: 58.34 kB / 417.4 MB, free: 6.684 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004812/0.2792, allocations: 3.155 MB / 420.6 MB, free: 3.336 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003232/0.2796, allocations: 0.7519 MB / 421.3 MB, free: 2.559 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001389/0.2797, allocations: 34.95 kB / 421.3 MB, free: 2.523 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001355/0.2799, allocations: 91.41 kB / 421.4 MB, free: 2.438 MB / 334.1 MB Notification: Performance of SimCode: time 8.41e-07/0.2799, allocations: 0 / 421.4 MB, free: 2.438 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02462/0.3045, allocations: 6.07 MB / 427.5 MB, free: 12.52 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.43/9.735, allocations: 11.98 kB / 427.5 MB, free: 12.51 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