Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001094/0.001094, allocations: 101.8 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001297/0.001297, allocations: 205.1 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.543/1.543, allocations: 227.2 MB / 245.9 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002498/0.0002498, allocations: 11.98 kB / 306.6 MB, free: 1.41 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1265/0.1268, allocations: 51.49 MB / 358.1 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.003085/0.1299, allocations: 2.369 MB / 360.4 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001249/0.1312, allocations: 0.7173 MB / 361.2 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001691/0.1313, allocations: 7.938 kB / 361.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 7.731e-05/0.1314, allocations: 31.75 kB / 361.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002798/0.1317, allocations: 103.7 kB / 361.3 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002906/0.132, allocations: 75.84 kB / 361.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003824/0.1324, allocations: 255.5 kB / 361.6 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002245/0.1327, allocations: 94.31 kB / 361.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001663/0.1328, allocations: 123.5 kB / 361.8 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002089/0.133, allocations: 147.4 kB / 362 MB, free: 9.984 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.864e-05/0.1331, allocations: 20 kB / 362 MB, free: 9.965 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.591e-05/0.1332, allocations: 16 kB / 362 MB, free: 9.949 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.482e-05/0.1332, allocations: 55.8 kB / 362.1 MB, free: 9.895 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.91e-05/0.1333, allocations: 81.52 kB / 362.2 MB, free: 9.809 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00032/0.1337, allocations: 291.4 kB / 362.4 MB, free: 9.523 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.1337, allocations: 0 / 362.4 MB, free: 9.523 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.235e-06/0.1337, allocations: 0 / 362.4 MB, free: 9.523 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.244e-06/0.1337, allocations: 0 / 362.4 MB, free: 9.523 MB / 302.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.001487/0.1352, allocations: 0.6561 MB / 363.1 MB, free: 8.812 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.1352, allocations: 8.031 kB / 363.1 MB, free: 8.805 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.976e-05/0.1353, allocations: 31.62 kB / 363.1 MB, free: 8.773 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003765/0.1357, allocations: 286.4 kB / 363.4 MB, free: 8.453 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.104e-05/0.1357, allocations: 24.52 kB / 363.4 MB, free: 8.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.248e-05/0.1358, allocations: 28 kB / 363.5 MB, free: 8.402 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007841/0.1366, allocations: 331.6 kB / 363.8 MB, free: 8.066 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.948e-06/0.1366, allocations: 0 / 363.8 MB, free: 8.066 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.405e-05/0.1366, allocations: 15.97 kB / 363.8 MB, free: 8.051 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.015e-05/0.1367, allocations: 11.94 kB / 363.8 MB, free: 8.039 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007875/0.1375, allocations: 302 kB / 364.1 MB, free: 7.742 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001871/0.1393, allocations: 1.165 MB / 365.3 MB, free: 6.484 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008645/0.1402, allocations: 238.5 kB / 365.5 MB, free: 6.242 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.948e-05/0.1403, allocations: 7.984 kB / 365.5 MB, free: 6.234 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005441/0.1408, allocations: 169.1 kB / 365.7 MB, free: 6.051 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.823e-06/0.1408, allocations: 4 kB / 365.7 MB, free: 6.047 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.001339/0.1422, allocations: 455 kB / 366.1 MB, free: 5.574 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.191e-05/0.1422, allocations: 81.11 kB / 366.2 MB, free: 5.477 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003641/0.1426, allocations: 328.5 kB / 366.5 MB, free: 5.148 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.552e-05/0.1427, allocations: 29.7 kB / 366.6 MB, free: 5.113 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001631/0.1428, allocations: 207.5 kB / 366.8 MB, free: 4.906 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.756e-05/0.1429, allocations: 35.55 kB / 366.8 MB, free: 4.871 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.407e-05/0.1429, allocations: 4 kB / 366.8 MB, free: 4.867 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.143, allocations: 334.8 kB / 367.1 MB, free: 4.531 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003548/0.1434, allocations: 120.1 kB / 367.2 MB, free: 4.41 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004031/0.1438, allocations: 223 kB / 367.5 MB, free: 4.141 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003716/0.1442, allocations: 149.6 kB / 367.6 MB, free: 3.988 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.1442, allocations: 8 kB / 367.6 MB, free: 3.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000939/0.1452, allocations: 427.6 kB / 368 MB, free: 3.547 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.402e-05/0.1452, allocations: 37.66 kB / 368.1 MB, free: 3.504 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.1452, allocations: 4 kB / 368.1 MB, free: 3.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002169/0.1455, allocations: 28.84 kB / 368.1 MB, free: 3.469 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000319/0.1458, allocations: 80.03 kB / 368.2 MB, free: 3.391 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001149/0.147, allocations: 1.319 MB / 369.5 MB, free: 1.941 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003536/0.1473, allocations: 63.59 kB / 369.6 MB, free: 1.879 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.231e-05/0.1474, allocations: 16.19 kB / 369.6 MB, free: 1.863 MB / 302.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 ($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.0001678/0.1475, allocations: 144.2 kB / 369.7 MB, free: 1.715 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.125e-05/0.1476, allocations: 27.67 kB / 369.7 MB, free: 1.688 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.034e-05/0.1476, allocations: 30.61 kB / 369.8 MB, free: 1.66 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.1477, allocations: 4 kB / 369.8 MB, free: 1.656 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.1477, allocations: 3.984 kB / 369.8 MB, free: 1.652 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.1477, allocations: 0 / 369.8 MB, free: 1.652 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000457/0.1481, allocations: 459.1 kB / 370.2 MB, free: 1.145 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.1481, allocations: 0 / 370.2 MB, free: 1.145 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001763/0.1483, allocations: 39.89 kB / 370.3 MB, free: 1.105 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.278e-05/0.1484, allocations: 28.88 kB / 370.3 MB, free: 1.074 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.425e-05/0.1485, allocations: 4 kB / 370.3 MB, free: 1.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1983/0.3468, allocations: 1.29 MB / 371.6 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.3468, allocations: 0.6875 kB / 371.6 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008715/0.3477, allocations: 324.9 kB / 371.9 MB, free: 18.63 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.473e-05/0.3478, allocations: 104 kB / 372 MB, free: 18.54 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.093e-05/0.3479, allocations: 6.781 kB / 372 MB, free: 18.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002398/0.3481, allocations: 33.25 kB / 372.1 MB, free: 18.54 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.043e-05/0.3482, allocations: 16.27 kB / 372.1 MB, free: 18.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.627e-05/0.3482, allocations: 7.844 kB / 372.1 MB, free: 18.54 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002597/0.3485, allocations: 230.6 kB / 372.3 MB, free: 18.46 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3485, allocations: 0 / 372.3 MB, free: 18.46 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003801/0.3489, allocations: 67.39 kB / 372.4 MB, free: 18.46 MB / 302.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 (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.0001388/0.349, allocations: 100.9 kB / 372.5 MB, free: 18.38 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001026/0.35, allocations: 440.7 kB / 372.9 MB, free: 18.21 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.3501, allocations: 1.219 kB / 372.9 MB, free: 18.21 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004542/0.3505, allocations: 227.7 kB / 373.1 MB, free: 18.1 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002786/0.3508, allocations: 48.06 kB / 373.2 MB, free: 18.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009372/0.3518, allocations: 0.5672 MB / 373.7 MB, free: 17.78 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001808/0.352, allocations: 0.7603 MB / 374.5 MB, free: 17.09 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001352/0.3521, allocations: 33.64 kB / 374.5 MB, free: 17.08 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.756e-05/0.3522, allocations: 28.84 kB / 374.6 MB, free: 17.07 MB / 302.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3522, allocations: 4.5 kB / 374.6 MB, free: 17.07 MB / 302.1 MB Notification: Performance of Templates: time 0.006965/0.3591, allocations: 2.851 MB / 377.4 MB, free: 16.91 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches