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.00156/0.00156, allocations: 112.2 kB / 17.74 MB, free: 5.355 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.001791/0.001791, allocations: 187.1 kB / 18.67 MB, free: 4.434 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.419/1.419, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001073/0.001074, allocations: 47.94 kB / 352 MB, free: 3.211 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2406/0.2417, 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.003863/0.2456, allocations: 2.898 MB / 404.3 MB, free: 5.961 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001117/0.2467, allocations: 0.6934 MB / 405 MB, free: 5.262 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001304/0.2468, allocations: 7.938 kB / 405 MB, free: 5.254 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001506/0.247, allocations: 51.5 kB / 405.1 MB, free: 5.203 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001768/0.2472, allocations: 95.19 kB / 405.2 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002671/0.2475, allocations: 107.8 kB / 405.3 MB, free: 5.004 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003817/0.2479, allocations: 394.5 kB / 405.7 MB, free: 4.617 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002139/0.2481, allocations: 127.9 kB / 405.8 MB, free: 4.488 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001674/0.2483, allocations: 155.4 kB / 405.9 MB, free: 4.336 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002122/0.2485, allocations: 183.3 kB / 406.1 MB, free: 4.156 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.802e-05/0.2485, allocations: 39.94 kB / 406.2 MB, free: 4.117 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.756e-05/0.2486, allocations: 36 kB / 406.2 MB, free: 4.082 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.515e-05/0.2487, allocations: 67.77 kB / 406.3 MB, free: 4.016 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001519/0.2488, allocations: 175.1 kB / 406.4 MB, free: 3.844 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003711/0.2492, allocations: 395.8 kB / 406.8 MB, free: 3.461 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.2492, allocations: 0 / 406.8 MB, free: 3.461 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.2492, allocations: 0 / 406.8 MB, free: 3.461 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.011e-05/0.2493, allocations: 0 / 406.8 MB, free: 3.461 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.00128/0.2505, allocations: 0.6731 MB / 407.5 MB, free: 2.734 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.408e-05/0.2506, allocations: 8.031 kB / 407.5 MB, free: 2.727 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.719e-05/0.2507, allocations: 44.41 kB / 407.5 MB, free: 2.684 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003619/0.251, allocations: 295.6 kB / 407.8 MB, free: 2.355 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.94e-05/0.2511, allocations: 16.94 kB / 407.8 MB, free: 2.34 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.745e-05/0.2511, allocations: 28.36 kB / 407.9 MB, free: 2.312 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006827/0.2518, allocations: 327.9 kB / 408.2 MB, free: 1.984 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-06/0.2518, allocations: 0 / 408.2 MB, free: 1.984 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.957e-05/0.2519, allocations: 8 kB / 408.2 MB, free: 1.977 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.2519, allocations: 8 kB / 408.2 MB, free: 1.969 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008139/0.2527, allocations: 274 kB / 408.5 MB, free: 1.699 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001684/0.2544, allocations: 1.138 MB / 409.6 MB, free: 484 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007963/0.2552, allocations: 206.5 kB / 409.8 MB, free: 268 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003181/0.2555, allocations: 88.78 kB / 409.9 MB, free: 176 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.162e-05/0.2556, allocations: 4 kB / 409.9 MB, free: 172 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004283/0.256, allocations: 157.2 kB / 410.1 MB, free: 15.99 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.373e-06/0.256, allocations: 4 kB / 410.1 MB, free: 15.99 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.001272/0.2573, allocations: 411.3 kB / 410.5 MB, free: 15.56 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.989e-05/0.2574, allocations: 77.2 kB / 410.5 MB, free: 15.47 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003265/0.2577, allocations: 336.3 kB / 410.9 MB, free: 15.13 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.181e-05/0.2577, allocations: 29.7 kB / 410.9 MB, free: 15.1 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001226/0.2579, allocations: 207.5 kB / 411.1 MB, free: 14.89 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.469e-05/0.2579, allocations: 35.58 kB / 411.1 MB, free: 14.86 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.824e-05/0.258, allocations: 53.84 kB / 411.2 MB, free: 14.79 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.2581, allocations: 338.8 kB / 411.5 MB, free: 14.45 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000361/0.2585, allocations: 100.2 kB / 411.6 MB, free: 14.36 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000407/0.2589, allocations: 211 kB / 411.8 MB, free: 14.09 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007238/0.2596, allocations: 327.9 kB / 412.1 MB, free: 13.71 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.2596, allocations: 0 / 412.1 MB, free: 13.71 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009708/0.2606, allocations: 409.9 kB / 412.5 MB, free: 13.3 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.897e-05/0.2607, allocations: 41.69 kB / 412.6 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.441e-05/0.2607, allocations: 4 kB / 412.6 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00016/0.2609, allocations: 25 kB / 412.6 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002766/0.2611, allocations: 67.89 kB / 412.7 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001011/0.2622, allocations: 1.418 MB / 414.1 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003688/0.2625, allocations: 55.56 kB / 414.2 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.537e-05/0.2626, allocations: 15.98 kB / 414.2 MB, free: 11.52 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.0001413/0.2627, allocations: 145.9 kB / 414.3 MB, free: 11.37 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.419e-05/0.2628, allocations: 23.72 kB / 414.3 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.775e-05/0.2628, allocations: 30.61 kB / 414.4 MB, free: 11.31 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.2628, allocations: 0 / 414.4 MB, free: 11.31 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.2629, allocations: 7.938 kB / 414.4 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.2629, allocations: 0 / 414.4 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004232/0.2633, allocations: 451.2 kB / 414.8 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.2633, allocations: 0 / 414.8 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001847/0.2635, allocations: 39.94 kB / 414.9 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.452e-05/0.2636, allocations: 28.77 kB / 414.9 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.582e-05/0.2636, allocations: 8 kB / 414.9 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009355/0.2646, allocations: 1.39 MB / 416.3 MB, free: 9.195 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.2646, allocations: 4.031 kB / 416.3 MB, free: 9.191 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007524/0.2653, allocations: 278.3 kB / 416.6 MB, free: 8.895 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.007e-05/0.2654, allocations: 104.8 kB / 416.7 MB, free: 8.773 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.979e-05/0.2655, allocations: 4 kB / 416.7 MB, free: 8.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002464/0.2657, allocations: 24.06 kB / 416.7 MB, free: 8.746 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.376e-05/0.2658, allocations: 23.86 kB / 416.7 MB, free: 8.723 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.005e-05/0.2658, allocations: 0 / 416.7 MB, free: 8.723 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002223/0.266, allocations: 231.1 kB / 416.9 MB, free: 8.5 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.266, allocations: 8 kB / 416.9 MB, free: 8.492 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003332/0.2664, allocations: 71.83 kB / 417 MB, free: 8.422 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.0001247/0.2665, allocations: 107.9 kB / 417.1 MB, free: 8.305 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009558/0.2675, allocations: 410 kB / 417.5 MB, free: 7.879 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.2675, allocations: 0 / 417.5 MB, free: 7.879 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004892/0.268, allocations: 215.3 kB / 417.7 MB, free: 7.656 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003635/0.2684, allocations: 49.98 kB / 417.8 MB, free: 7.609 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001087/0.2695, allocations: 0.5025 MB / 418.3 MB, free: 7.074 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004129/0.2699, allocations: 0.7559 MB / 419 MB, free: 6.289 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.557e-05/0.27, allocations: 23.44 kB / 419.1 MB, free: 6.266 MB / 334.1 MB Notification: Performance of SimCode: time 5.61e-07/0.27, allocations: 3.938 kB / 419.1 MB, free: 6.262 MB / 334.1 MB Notification: Performance of Templates: time 0.006417/0.2764, allocations: 4.645 MB / 423.7 MB, free: 1.633 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