Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001821/0.001821, allocations: 98.12 kB / 21.93 MB, free: 5.207 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002126/0.002126, allocations: 202.7 kB / 25.22 MB, free: 3.141 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.468/1.468, allocations: 207.7 MB / 236.1 MB, free: 9.762 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001865/0.001865, allocations: 54.58 kB / 348.5 MB, free: 9.352 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2711/0.273, allocations: 49.15 MB / 397.6 MB, free: 9.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.00349/0.2765, allocations: 2.656 MB / 400.3 MB, free: 7.617 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001095/0.2776, allocations: 0.7199 MB / 401 MB, free: 7.109 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001356/0.2777, allocations: 8.875 kB / 401 MB, free: 7.105 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001525/0.2778, allocations: 47.33 kB / 401.1 MB, free: 7.078 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001793/0.278, allocations: 99.58 kB / 401.2 MB, free: 7.008 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002627/0.2783, allocations: 109.2 kB / 401.3 MB, free: 6.945 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003609/0.2787, allocations: 403 kB / 401.7 MB, free: 6.738 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001882/0.2788, allocations: 107.5 kB / 401.8 MB, free: 6.676 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001702/0.279, allocations: 156.1 kB / 401.9 MB, free: 6.598 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002068/0.2792, allocations: 151.6 kB / 402.1 MB, free: 6.531 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.018e-05/0.2793, allocations: 36.25 kB / 402.1 MB, free: 6.531 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.098e-05/0.2793, allocations: 37.06 kB / 402.1 MB, free: 6.531 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.533e-05/0.2794, allocations: 79.28 kB / 402.2 MB, free: 6.477 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001314/0.2795, allocations: 139.2 kB / 402.3 MB, free: 6.398 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004134/0.2799, allocations: 400.7 kB / 402.7 MB, free: 6.246 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.28, allocations: 3.938 kB / 402.7 MB, free: 6.242 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.28, allocations: 0.75 kB / 402.7 MB, free: 6.242 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.293e-06/0.28, allocations: 0 / 402.7 MB, free: 6.242 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.001234/0.2812, allocations: 0.6161 MB / 403.4 MB, free: 5.793 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.2812, allocations: 13 kB / 403.4 MB, free: 5.789 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.988e-05/0.2813, allocations: 33.38 kB / 403.4 MB, free: 5.773 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003401/0.2817, allocations: 231.5 kB / 403.6 MB, free: 5.578 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.605e-05/0.2817, allocations: 21.7 kB / 403.6 MB, free: 5.566 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.098e-05/0.2817, allocations: 25.12 kB / 403.7 MB, free: 5.559 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006366/0.2824, allocations: 293.6 kB / 404 MB, free: 5.434 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.232e-05/0.2824, allocations: 0 / 404 MB, free: 5.434 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.649e-05/0.2824, allocations: 10.19 kB / 404 MB, free: 5.426 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.134e-05/0.2824, allocations: 11.28 kB / 404 MB, free: 5.422 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008087/0.2832, allocations: 279.7 kB / 404.3 MB, free: 5.348 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001444/0.2847, allocations: 0.8783 MB / 405.1 MB, free: 4.742 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006608/0.2853, allocations: 194.5 kB / 405.3 MB, free: 4.676 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000257/0.2856, allocations: 85.78 kB / 405.4 MB, free: 4.645 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.911e-05/0.2856, allocations: 2.406 kB / 405.4 MB, free: 4.645 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003642/0.286, allocations: 160.4 kB / 405.6 MB, free: 4.551 MB / 318.1 MB Notification: Performance of pre-optimization done (n=11): time 1.382e-06/0.286, allocations: 0 / 405.6 MB, free: 4.551 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.001103/0.2871, allocations: 316.1 kB / 405.9 MB, free: 4.438 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.052e-05/0.2871, allocations: 79.14 kB / 405.9 MB, free: 4.344 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002738/0.2874, allocations: 287.8 kB / 406.2 MB, free: 4.18 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.668e-05/0.2874, allocations: 31.36 kB / 406.3 MB, free: 4.145 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001112/0.2875, allocations: 221.7 kB / 406.5 MB, free: 3.953 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.05e-05/0.2875, allocations: 36.86 kB / 406.5 MB, free: 3.926 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.298e-05/0.2876, allocations: 50.33 kB / 406.6 MB, free: 3.895 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.729e-05/0.2877, allocations: 336.5 kB / 406.9 MB, free: 3.57 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003254/0.288, allocations: 127.2 kB / 407 MB, free: 3.508 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003496/0.2884, allocations: 228.2 kB / 407.2 MB, free: 3.316 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006076/0.289, allocations: 314.6 kB / 407.5 MB, free: 3.09 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.289, allocations: 0 / 407.5 MB, free: 3.09 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008473/0.2898, allocations: 423.3 kB / 408 MB, free: 2.871 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.188e-05/0.2899, allocations: 43.06 kB / 408 MB, free: 2.832 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.2899, allocations: 3.875 kB / 408 MB, free: 2.832 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001825/0.29, allocations: 30.61 kB / 408 MB, free: 2.82 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000253/0.2903, allocations: 58.8 kB / 408.1 MB, free: 2.816 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007783/0.2911, allocations: 1.27 MB / 409.4 MB, free: 1.559 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003073/0.2914, allocations: 42.67 kB / 409.4 MB, free: 1.543 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.862e-05/0.2914, allocations: 16.31 kB / 409.4 MB, free: 1.539 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003212/0.2917, allocations: 217.6 kB / 409.6 MB, free: 1.387 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002899/0.292, allocations: 221.9 kB / 409.8 MB, free: 1.191 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004935/0.2925, allocations: 293.5 kB / 410.1 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.375e-06/0.2925, allocations: 1.562 kB / 410.1 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization_lambda0): time 0.0007492/0.2933, allocations: 385.4 kB / 410.5 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.24e-05/0.2933, allocations: 43.17 kB / 410.6 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.2933, allocations: 3.156 kB / 410.6 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.417e-05/0.2934, allocations: 31.66 kB / 410.6 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002185/0.2936, allocations: 62.06 kB / 410.6 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008488/0.2945, allocations: 1.276 MB / 411.9 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002876/0.2947, allocations: 34.61 kB / 412 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.524e-05/0.2948, allocations: 15.45 kB / 412 MB, free: 15.42 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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.0001606/0.2949, allocations: 192.9 kB / 412.2 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.166e-05/0.295, allocations: 26.97 kB / 412.2 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.447e-05/0.295, allocations: 28.39 kB / 412.2 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.524e-06/0.295, allocations: 1.219 kB / 412.2 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.295, allocations: 5.344 kB / 412.2 MB, free: 15.19 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.295, allocations: 0.7031 kB / 412.2 MB, free: 15.19 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004689/0.2955, allocations: 364 kB / 412.6 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.2955, allocations: 0 / 412.6 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001649/0.2957, allocations: 31.78 kB / 412.6 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.382e-05/0.2958, allocations: 22.86 kB / 412.6 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.754e-05/0.2958, allocations: 5.766 kB / 412.6 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001079/0.2969, allocations: 1.265 MB / 413.9 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.2969, allocations: 3.938 kB / 413.9 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007073/0.2976, allocations: 266 kB / 414.2 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.915e-05/0.2976, allocations: 22.27 kB / 414.2 MB, free: 13.44 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.067e-05/0.2977, allocations: 9.609 kB / 414.2 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002098/0.2979, allocations: 24.5 kB / 414.2 MB, free: 13.42 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.366e-05/0.2979, allocations: 18.72 kB / 414.2 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.181e-05/0.298, allocations: 2.562 kB / 414.2 MB, free: 13.41 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002358/0.2982, allocations: 199.5 kB / 414.4 MB, free: 13.27 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2982, allocations: 0 / 414.4 MB, free: 13.27 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005724/0.2988, allocations: 138.4 kB / 414.6 MB, free: 13.24 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 (10): * Single equations (assignments): 7 * 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.0001352/0.2989, allocations: 102.8 kB / 414.7 MB, free: 13.14 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001528/0.3004, allocations: 0.7333 MB / 415.4 MB, free: 12.55 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3004, allocations: 0 / 415.4 MB, free: 12.55 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004674/0.3009, allocations: 208.5 kB / 415.6 MB, free: 12.39 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003332/0.3012, allocations: 42.98 kB / 415.7 MB, free: 12.37 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001087/0.3023, allocations: 0.5055 MB / 416.2 MB, free: 12 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001786/0.3025, allocations: 151.2 kB / 416.3 MB, free: 11.88 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.67e-05/0.3026, allocations: 22.88 kB / 416.3 MB, free: 11.88 MB / 334.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3026, allocations: 0 / 416.3 MB, free: 11.88 MB / 334.1 MB Notification: Performance of Templates: time 0.007582/0.3102, allocations: 4.651 MB / 421 MB, free: 9.402 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.5795734277926385]