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: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001074/0.001075, allocations: 110.9 kB / 17.74 MB, free: 5.352 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.001082/0.001082, allocations: 192.5 kB / 18.67 MB, free: 4.426 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.293/1.293, allocations: 222.9 MB / 242.4 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001021/0.001021, allocations: 51.92 kB / 352 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2322/0.2332, allocations: 49.43 MB / 401.4 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004096/0.2373, allocations: 2.892 MB / 404.3 MB, free: 5.988 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001158/0.2385, allocations: 0.6972 MB / 405 MB, free: 5.285 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001273/0.2387, allocations: 4 kB / 405 MB, free: 5.281 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001533/0.2388, allocations: 55.5 kB / 405.1 MB, free: 5.227 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001847/0.239, allocations: 91.19 kB / 405.2 MB, free: 5.137 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002733/0.2393, allocations: 107.8 kB / 405.3 MB, free: 5.031 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004969/0.2398, allocations: 398.5 kB / 405.7 MB, free: 4.641 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002337/0.24, allocations: 127.9 kB / 405.8 MB, free: 4.512 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001583/0.2402, allocations: 159.3 kB / 405.9 MB, free: 4.355 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002021/0.2404, allocations: 175.2 kB / 406.1 MB, free: 4.184 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.389e-05/0.2405, allocations: 36 kB / 406.2 MB, free: 4.148 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.821e-05/0.2405, allocations: 44 kB / 406.2 MB, free: 4.105 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.592e-05/0.2406, allocations: 71.7 kB / 406.3 MB, free: 4.035 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001493/0.2408, allocations: 171.2 kB / 406.4 MB, free: 3.867 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003666/0.2412, allocations: 391.8 kB / 406.8 MB, free: 3.488 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/0.2412, allocations: 0 / 406.8 MB, free: 3.488 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.2412, allocations: 0 / 406.8 MB, free: 3.488 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.201e-06/0.2412, allocations: 0 / 406.8 MB, free: 3.488 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.001277/0.2425, allocations: 0.6809 MB / 407.5 MB, free: 2.754 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.493e-05/0.2425, allocations: 15.89 kB / 407.5 MB, free: 2.738 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.373e-05/0.2426, allocations: 40.47 kB / 407.6 MB, free: 2.699 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003636/0.243, allocations: 291.6 kB / 407.8 MB, free: 2.375 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.016e-05/0.243, allocations: 20.94 kB / 407.9 MB, free: 2.355 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.786e-05/0.243, allocations: 28.36 kB / 407.9 MB, free: 2.328 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006477/0.2437, allocations: 319.9 kB / 408.2 MB, free: 2.008 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.2437, allocations: 0 / 408.2 MB, free: 2.008 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.684e-05/0.2437, allocations: 16 kB / 408.2 MB, free: 1.992 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.485e-06/0.2438, allocations: 4 kB / 408.2 MB, free: 1.988 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007382/0.2445, allocations: 274 kB / 408.5 MB, free: 1.719 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001903/0.2464, allocations: 1.138 MB / 409.6 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007696/0.2472, allocations: 206.5 kB / 409.8 MB, free: 288 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002885/0.2475, allocations: 88.78 kB / 409.9 MB, free: 196 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.048e-05/0.2475, allocations: 4.188 kB / 409.9 MB, free: 192 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004026/0.2479, allocations: 161 kB / 410.1 MB, free: 12 kB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 1.383e-06/0.248, allocations: 0 / 410.1 MB, free: 12 kB / 318.1 MB Notification: Performance of matching and sorting (n=10): time 0.001265/0.2492, allocations: 415.4 kB / 410.5 MB, free: 15.57 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.32e-05/0.2493, allocations: 77.2 kB / 410.6 MB, free: 15.48 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003651/0.2497, allocations: 332.3 kB / 410.9 MB, free: 15.15 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.749e-05/0.2497, allocations: 33.7 kB / 410.9 MB, free: 15.11 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001596/0.2499, allocations: 203.5 kB / 411.1 MB, free: 14.91 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.241e-05/0.2499, allocations: 35.55 kB / 411.1 MB, free: 14.87 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.944e-05/0.25, allocations: 49.84 kB / 411.2 MB, free: 14.81 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.2501, allocations: 346.8 kB / 411.5 MB, free: 14.46 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003328/0.2505, allocations: 96.16 kB / 411.6 MB, free: 14.37 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003882/0.2509, allocations: 214.9 kB / 411.8 MB, free: 14.11 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007009/0.2516, allocations: 327.9 kB / 412.2 MB, free: 13.73 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.2516, allocations: 4 kB / 412.2 MB, free: 13.72 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009249/0.2525, allocations: 403.7 kB / 412.6 MB, free: 13.31 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.305e-05/0.2526, allocations: 41.69 kB / 412.6 MB, free: 13.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.816e-06/0.2526, allocations: 4 kB / 412.6 MB, free: 13.26 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000172/0.2528, allocations: 28.78 kB / 412.6 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002577/0.2531, allocations: 64.05 kB / 412.7 MB, free: 13.17 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001037/0.2541, allocations: 1.414 MB / 414.1 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003219/0.2544, allocations: 55.56 kB / 414.2 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.656e-05/0.2545, allocations: 15.98 kB / 414.2 MB, free: 11.54 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.0001498/0.2546, allocations: 141.8 kB / 414.3 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.651e-05/0.2547, allocations: 27.78 kB / 414.3 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.542e-05/0.2547, allocations: 30.61 kB / 414.4 MB, free: 11.33 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.2547, allocations: 3.938 kB / 414.4 MB, free: 11.33 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.2547, allocations: 3.938 kB / 414.4 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.2547, allocations: 0 / 414.4 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004101/0.2552, allocations: 451.1 kB / 414.8 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.2552, allocations: 0 / 414.8 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001642/0.2553, allocations: 35.97 kB / 414.9 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001005/0.2555, allocations: 32.8 kB / 414.9 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.61e-05/0.2555, allocations: 8 kB / 414.9 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009695/0.2565, allocations: 1.387 MB / 416.3 MB, free: 9.219 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.2565, allocations: 0 / 416.3 MB, free: 9.219 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007075/0.2572, allocations: 274.3 kB / 416.5 MB, free: 8.926 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.674e-05/0.2573, allocations: 104.8 kB / 416.6 MB, free: 8.805 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.485e-05/0.2573, allocations: 12 kB / 416.7 MB, free: 8.793 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002113/0.2575, allocations: 20.06 kB / 416.7 MB, free: 8.773 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.476e-05/0.2576, allocations: 23.86 kB / 416.7 MB, free: 8.75 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.226e-05/0.2576, allocations: 4 kB / 416.7 MB, free: 8.746 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002327/0.2579, allocations: 231.1 kB / 416.9 MB, free: 8.523 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2579, allocations: 3.938 kB / 416.9 MB, free: 8.52 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000326/0.2582, allocations: 71.83 kB / 417 MB, free: 8.449 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.0001476/0.2584, allocations: 115.9 kB / 417.1 MB, free: 8.324 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000918/0.2593, allocations: 406.1 kB / 417.5 MB, free: 7.902 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.2593, allocations: 0 / 417.5 MB, free: 7.902 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000446/0.2597, allocations: 215.3 kB / 417.7 MB, free: 7.68 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000317/0.2601, allocations: 42.56 kB / 417.8 MB, free: 7.637 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000964/0.261, allocations: 0.5124 MB / 418.3 MB, free: 7.094 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002943/0.2614, allocations: 0.7559 MB / 419 MB, free: 6.309 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.053e-05/0.2614, allocations: 23.44 kB / 419.1 MB, free: 6.285 MB / 334.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2614, allocations: 3.938 kB / 419.1 MB, free: 6.281 MB / 334.1 MB Notification: Performance of Templates: time 0.006052/0.2675, allocations: 4.684 MB / 423.7 MB, free: 1.617 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile (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 & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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.mat","/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