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.001126/0.001126, allocations: 118.9 kB / 18.41 MB, free: 4.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001535/0.001535, allocations: 204.5 kB / 19.36 MB, free: 3.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.59/1.59, allocations: 227.4 MB / 247.5 MB, free: 10.33 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001161/0.001161, allocations: 59.84 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1103, allocations: 50.53 MB / 358.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004151/0.1145, allocations: 2.906 MB / 361.8 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001354/0.1159, allocations: 0.7362 MB / 362.6 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001599/0.116, allocations: 8 kB / 362.6 MB, free: 9.656 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000181/0.1163, allocations: 47.5 kB / 362.6 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001934/0.1165, allocations: 99.12 kB / 362.7 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003096/0.1168, allocations: 111.8 kB / 362.8 MB, free: 9.402 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004013/0.1172, allocations: 398.4 kB / 363.2 MB, free: 9.012 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002382/0.1175, allocations: 135.9 kB / 363.3 MB, free: 8.879 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001881/0.1176, allocations: 143.5 kB / 363.5 MB, free: 8.738 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001996/0.1179, allocations: 171.2 kB / 363.6 MB, free: 8.57 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.716e-05/0.1179, allocations: 44 kB / 363.7 MB, free: 8.527 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.242e-05/0.118, allocations: 36 kB / 363.7 MB, free: 8.492 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.094e-05/0.1181, allocations: 83.67 kB / 363.8 MB, free: 8.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001592/0.1182, allocations: 167.1 kB / 364 MB, free: 8.246 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003769/0.1186, allocations: 386.7 kB / 364.3 MB, free: 7.867 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1186, allocations: 0 / 364.3 MB, free: 7.867 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1186, allocations: 0 / 364.3 MB, free: 7.867 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.663e-06/0.1187, allocations: 4 kB / 364.3 MB, free: 7.863 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.001304/0.12, allocations: 0.6886 MB / 365 MB, free: 7.121 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.12, allocations: 8.031 kB / 365 MB, free: 7.113 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.178e-05/0.1201, allocations: 36.56 kB / 365.1 MB, free: 7.078 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000425/0.1205, allocations: 295.5 kB / 365.4 MB, free: 6.75 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.462e-05/0.1206, allocations: 20.94 kB / 365.4 MB, free: 6.727 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.534e-05/0.1206, allocations: 28.36 kB / 365.4 MB, free: 6.699 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006505/0.1213, allocations: 319.9 kB / 365.7 MB, free: 6.375 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.263e-05/0.1213, allocations: 3.938 kB / 365.7 MB, free: 6.371 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.998e-05/0.1213, allocations: 15.98 kB / 365.7 MB, free: 6.355 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.867e-06/0.1213, allocations: 15.88 kB / 365.8 MB, free: 6.34 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007451/0.1221, allocations: 270.1 kB / 366 MB, free: 6.078 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001691/0.1238, allocations: 1.13 MB / 367.2 MB, free: 4.855 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007319/0.1245, allocations: 214.5 kB / 367.4 MB, free: 4.637 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002804/0.1248, allocations: 84.8 kB / 367.4 MB, free: 4.551 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.483e-05/0.1249, allocations: 0 / 367.4 MB, free: 4.551 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004094/0.1253, allocations: 164.9 kB / 367.6 MB, free: 4.371 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.873e-06/0.1253, allocations: 4 kB / 367.6 MB, free: 4.367 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.001204/0.1265, allocations: 411.3 kB / 368 MB, free: 3.938 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.794e-05/0.1266, allocations: 77.11 kB / 368.1 MB, free: 3.844 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003385/0.1269, allocations: 324.5 kB / 368.4 MB, free: 3.52 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.284e-05/0.1269, allocations: 29.7 kB / 368.4 MB, free: 3.484 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001414/0.1271, allocations: 207.5 kB / 368.6 MB, free: 3.277 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.377e-05/0.1271, allocations: 47.53 kB / 368.7 MB, free: 3.23 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.163e-05/0.1272, allocations: 49.92 kB / 368.7 MB, free: 3.172 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001246/0.1274, allocations: 338.8 kB / 369.1 MB, free: 2.832 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003225/0.1277, allocations: 92.16 kB / 369.2 MB, free: 2.742 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003816/0.1281, allocations: 216.6 kB / 369.4 MB, free: 2.48 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006798/0.1288, allocations: 331.3 kB / 369.7 MB, free: 2.102 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-06/0.1288, allocations: 4 kB / 369.7 MB, free: 2.098 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009468/0.1297, allocations: 407.6 kB / 370.1 MB, free: 1.684 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.617e-05/0.1298, allocations: 33.7 kB / 370.1 MB, free: 1.645 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.1298, allocations: 4 kB / 370.1 MB, free: 1.641 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001728/0.13, allocations: 28.84 kB / 370.2 MB, free: 1.609 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002644/0.1303, allocations: 71.97 kB / 370.2 MB, free: 1.539 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1918/0.3221, allocations: 1.405 MB / 371.6 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005702/0.3227, allocations: 48.72 kB / 371.7 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.563e-05/0.3228, allocations: 14.7 kB / 371.7 MB, free: 20.07 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 (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.0002384/0.323, allocations: 149.5 kB / 371.8 MB, free: 19.96 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.99e-05/0.3231, allocations: 30.25 kB / 371.9 MB, free: 19.96 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.989e-05/0.3232, allocations: 31.55 kB / 371.9 MB, free: 19.95 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.3232, allocations: 1.656 kB / 371.9 MB, free: 19.95 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.045e-05/0.3232, allocations: 4.844 kB / 371.9 MB, free: 19.95 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.3232, allocations: 1.156 kB / 371.9 MB, free: 19.95 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006265/0.3239, allocations: 449 kB / 372.3 MB, free: 19.65 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.397e-06/0.3239, allocations: 2.312 kB / 372.3 MB, free: 19.65 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000217/0.3241, allocations: 34.22 kB / 372.4 MB, free: 19.65 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001347/0.3243, allocations: 26.44 kB / 372.4 MB, free: 19.64 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.012e-05/0.3243, allocations: 2.484 kB / 372.4 MB, free: 19.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008368/0.3251, allocations: 1.405 MB / 373.8 MB, free: 18.31 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.3252, allocations: 0 / 373.8 MB, free: 18.31 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007715/0.3259, allocations: 264.7 kB / 374.1 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.591e-05/0.326, allocations: 114.4 kB / 374.2 MB, free: 18.14 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.651e-05/0.3261, allocations: 6.172 kB / 374.2 MB, free: 18.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002371/0.3263, allocations: 24.86 kB / 374.2 MB, free: 18.14 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.795e-05/0.3264, allocations: 20.59 kB / 374.2 MB, free: 18.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.542e-05/0.3265, allocations: 4.578 kB / 374.2 MB, free: 18.14 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002759/0.3267, allocations: 233 kB / 374.5 MB, free: 18.06 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3267, allocations: 0 / 374.5 MB, free: 18.06 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004251/0.3272, allocations: 66.67 kB / 374.5 MB, free: 18.06 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 (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.0001555/0.3273, allocations: 108.2 kB / 374.6 MB, free: 17.97 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001082/0.3284, allocations: 411.7 kB / 375 MB, free: 17.8 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.3284, allocations: 96 / 375 MB, free: 17.8 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004765/0.3289, allocations: 218.5 kB / 375.3 MB, free: 17.69 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000344/0.3293, allocations: 54.97 kB / 375.3 MB, free: 17.68 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001071/0.3304, allocations: 482.5 kB / 375.8 MB, free: 17.44 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002076/0.3306, allocations: 0.7532 MB / 376.5 MB, free: 16.74 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001355/0.3307, allocations: 36.33 kB / 376.6 MB, free: 16.74 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.216e-05/0.3308, allocations: 27.14 kB / 376.6 MB, free: 16.73 MB / 302.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3308, allocations: 0 / 376.6 MB, free: 16.73 MB / 302.1 MB Notification: Performance of Templates: time 0.007902/0.3387, allocations: 3.242 MB / 379.8 MB, free: 16.58 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 -s cvode -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/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_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches