Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009913/0.0009913, allocations: 179.2 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.577/1.577, allocations: 205.4 MB / 222.5 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000767/0.000767, allocations: 97.58 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002976/0.0002976, allocations: 15.98 kB / 327 MB, free: 188 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2246/0.2249, allocations: 47.57 MB / 374.6 MB, free: 45.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.002642/0.2276, allocations: 2.413 MB / 377 MB, free: 43.51 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001102/0.2287, allocations: 0.7125 MB / 377.7 MB, free: 42.92 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001866/0.229, allocations: 4.781 kB / 377.7 MB, free: 42.92 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001291/0.2291, allocations: 36.3 kB / 377.7 MB, free: 42.89 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001493/0.2292, allocations: 77.22 kB / 377.8 MB, free: 42.82 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002542/0.2295, allocations: 79.38 kB / 377.9 MB, free: 42.76 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003332/0.2298, allocations: 353.7 kB / 378.2 MB, free: 42.54 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002003/0.2301, allocations: 100.4 kB / 378.3 MB, free: 42.49 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000137/0.2302, allocations: 119.7 kB / 378.4 MB, free: 42.43 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001662/0.2304, allocations: 155.8 kB / 378.6 MB, free: 42.32 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.202e-05/0.2304, allocations: 19.31 kB / 378.6 MB, free: 42.32 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.833e-05/0.2305, allocations: 18.34 kB / 378.6 MB, free: 42.32 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.781e-05/0.2306, allocations: 55.97 kB / 378.7 MB, free: 42.27 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.947e-05/0.2306, allocations: 82.98 kB / 378.8 MB, free: 42.21 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002514/0.2309, allocations: 295 kB / 379.1 MB, free: 41.98 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.493e-06/0.2309, allocations: 0 / 379.1 MB, free: 41.98 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.2309, allocations: 0 / 379.1 MB, free: 41.98 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.234e-05/0.2309, allocations: 1.094 kB / 379.1 MB, free: 41.98 MB / 298.7 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.00121/0.2322, allocations: 0.651 MB / 379.7 MB, free: 41.42 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/0.2322, allocations: 9.156 kB / 379.7 MB, free: 41.42 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.524e-05/0.2323, allocations: 32.53 kB / 379.7 MB, free: 41.41 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002898/0.2326, allocations: 293.5 kB / 380 MB, free: 41.11 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.187e-05/0.2326, allocations: 18.69 kB / 380.1 MB, free: 41.11 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.259e-05/0.2327, allocations: 25.31 kB / 380.1 MB, free: 41.1 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006849/0.2334, allocations: 304 kB / 380.4 MB, free: 40.92 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.2334, allocations: 0 / 380.4 MB, free: 40.92 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.79e-05/0.2334, allocations: 14.28 kB / 380.4 MB, free: 40.91 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/0.2334, allocations: 5.5 kB / 380.4 MB, free: 40.91 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008852/0.2343, allocations: 319.4 kB / 380.7 MB, free: 40.77 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001625/0.236, allocations: 1.078 MB / 381.8 MB, free: 39.86 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000738/0.2367, allocations: 239.7 kB / 382 MB, free: 39.75 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003131/0.237, allocations: 101 kB / 382.1 MB, free: 39.7 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.458e-05/0.2371, allocations: 1.125 kB / 382.1 MB, free: 39.7 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004531/0.2375, allocations: 165.4 kB / 382.3 MB, free: 39.59 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 2.505e-06/0.2375, allocations: 0 / 382.3 MB, free: 39.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.001215/0.2388, allocations: 455.4 kB / 382.7 MB, free: 39.3 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.572e-05/0.2388, allocations: 79.61 kB / 382.8 MB, free: 39.21 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003171/0.2391, allocations: 325.1 kB / 383.1 MB, free: 39 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.899e-05/0.2392, allocations: 32.11 kB / 383.1 MB, free: 38.96 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.192e-05/0.2393, allocations: 197.2 kB / 383.3 MB, free: 38.78 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.611e-05/0.2393, allocations: 36.84 kB / 383.4 MB, free: 38.75 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.254e-05/0.2393, allocations: 5.438 kB / 383.4 MB, free: 38.75 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.822e-05/0.2394, allocations: 341 kB / 383.7 MB, free: 38.41 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003139/0.2397, allocations: 111.3 kB / 383.8 MB, free: 38.36 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000338/0.24, allocations: 214.8 kB / 384 MB, free: 38.18 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003266/0.2404, allocations: 152.9 kB / 384.2 MB, free: 38.09 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.2404, allocations: 1.25 kB / 384.2 MB, free: 38.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008799/0.2413, allocations: 420.4 kB / 384.6 MB, free: 37.86 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.887e-05/0.2414, allocations: 222.1 kB / 384.8 MB, free: 37.59 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.2414, allocations: 4.406 kB / 384.8 MB, free: 37.59 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001835/0.2416, allocations: 28.69 kB / 384.8 MB, free: 37.58 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002819/0.2419, allocations: 77 kB / 384.9 MB, free: 37.55 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007928/0.2427, allocations: 1.308 MB / 386.2 MB, free: 36.2 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003565/0.2431, allocations: 55.91 kB / 386.3 MB, free: 36.17 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.826e-05/0.2431, allocations: 14.55 kB / 386.3 MB, free: 36.16 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.835e-06/0.2431, allocations: 8.25 kB / 386.3 MB, free: 36.16 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007184/0.2438, allocations: 347.1 kB / 386.6 MB, free: 35.98 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/0.2439, allocations: 5.188 kB / 386.6 MB, free: 35.98 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.739e-05/0.2439, allocations: 28.25 kB / 386.7 MB, free: 35.96 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002291/0.2442, allocations: 65.3 kB / 386.7 MB, free: 35.94 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006051/0.2448, allocations: 1.291 MB / 388 MB, free: 34.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003292/0.2451, allocations: 43.28 kB / 388.1 MB, free: 34.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.133e-05/0.2452, allocations: 9.188 kB / 388.1 MB, free: 34.57 MB / 298.7 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 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000169/0.2453, allocations: 232.8 kB / 388.3 MB, free: 34.35 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.359e-05/0.2454, allocations: 32.33 kB / 388.3 MB, free: 34.33 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.445e-05/0.2454, allocations: 29.39 kB / 388.4 MB, free: 34.3 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.2454, allocations: 1 kB / 388.4 MB, free: 34.3 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.2455, allocations: 1.188 kB / 388.4 MB, free: 34.3 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.2455, allocations: 1.031 kB / 388.4 MB, free: 34.3 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003405/0.2458, allocations: 451.5 kB / 388.8 MB, free: 33.8 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.2458, allocations: 0 / 388.8 MB, free: 33.8 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001591/0.246, allocations: 39.97 kB / 388.9 MB, free: 33.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.154e-05/0.2461, allocations: 28.78 kB / 388.9 MB, free: 33.73 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.711e-05/0.2461, allocations: 12.02 kB / 388.9 MB, free: 33.72 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006207/0.2467, allocations: 1.296 MB / 390.2 MB, free: 32.29 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.2468, allocations: 0 / 390.2 MB, free: 32.29 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006221/0.2474, allocations: 300.3 kB / 390.5 MB, free: 31.98 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.712e-05/0.2474, allocations: 112.7 kB / 390.6 MB, free: 31.85 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.505e-05/0.2475, allocations: 4 kB / 390.6 MB, free: 31.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002214/0.2477, allocations: 35.95 kB / 390.6 MB, free: 31.81 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.441e-05/0.2478, allocations: 19.97 kB / 390.7 MB, free: 31.79 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.104e-05/0.2478, allocations: 11.92 kB / 390.7 MB, free: 31.78 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000178/0.248, allocations: 231.1 kB / 390.9 MB, free: 31.55 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.248, allocations: 0 / 390.9 MB, free: 31.55 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004853/0.2485, allocations: 123.8 kB / 391 MB, free: 31.43 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001549/0.2487, allocations: 95.25 kB / 391.1 MB, free: 31.33 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001252/0.2499, allocations: 0.7351 MB / 391.8 MB, free: 30.55 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.2499, allocations: 0 / 391.8 MB, free: 30.55 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003817/0.2503, allocations: 227.3 kB / 392.1 MB, free: 30.31 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003519/0.2507, allocations: 44.75 kB / 392.1 MB, free: 30.27 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008867/0.2516, allocations: 0.5869 MB / 392.7 MB, free: 29.65 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001805/0.2518, allocations: 0.7561 MB / 393.4 MB, free: 28.86 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.892e-05/0.2519, allocations: 27.42 kB / 393.5 MB, free: 28.84 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2519, allocations: 0 / 393.5 MB, free: 28.84 MB / 298.7 MB Notification: Performance of Templates: time 0.005154/0.257, allocations: 4.631 MB / 398.1 MB, free: 24.22 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches