Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.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 3.2.3+maint.om/package.mo", uses=false) 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.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.InvertingAmp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vIn.signalSource.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp") translateModel(Modelica.Electrical.Analog.Examples.InvertingAmp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vIn.signalSource.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001402/0.001402, allocations: 111.9 kB / 18.4 MB, free: 4.566 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.001483/0.001483, allocations: 190.3 kB / 19.33 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.283/1.283, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 55.92 kB / 329.2 MB, free: 3.285 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07661/0.07785, allocations: 46.6 MB / 375.8 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.003805/0.08169, allocations: 2.758 MB / 378.6 MB, free: 1.805 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001251/0.08296, allocations: 0.6822 MB / 379.3 MB, free: 1.113 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000165/0.08318, allocations: 4 kB / 379.3 MB, free: 1.109 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001544/0.08335, allocations: 47.5 kB / 379.3 MB, free: 1.062 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002128/0.08357, allocations: 91.19 kB / 379.4 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003083/0.08389, allocations: 91.88 kB / 379.5 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003909/0.08429, allocations: 378.3 kB / 379.9 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002255/0.08452, allocations: 122.9 kB / 380 MB, free: 400 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002228/0.08475, allocations: 147.4 kB / 380.1 MB, free: 252 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001991/0.08496, allocations: 167.3 kB / 380.3 MB, free: 84 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.678e-05/0.08502, allocations: 36 kB / 380.3 MB, free: 48 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.513e-05/0.08509, allocations: 36 kB / 380.4 MB, free: 12 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1592/0.2443, allocations: 70.56 kB / 380.4 MB, free: 10.18 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002935/0.2447, allocations: 160.8 kB / 380.6 MB, free: 10.18 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004979/0.2452, allocations: 377 kB / 381 MB, free: 10.14 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.2452, allocations: 0 / 381 MB, free: 10.14 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.2452, allocations: 0 / 381 MB, free: 10.14 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.896e-05/0.2452, allocations: 3.469 kB / 381 MB, free: 10.14 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0014/0.2466, allocations: 0.651 MB / 381.6 MB, free: 9.66 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.549e-05/0.2467, allocations: 9.625 kB / 381.6 MB, free: 9.66 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.799e-05/0.2468, allocations: 33.33 kB / 381.6 MB, free: 9.645 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003623/0.2471, allocations: 271.3 kB / 381.9 MB, free: 9.422 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.125e-05/0.2472, allocations: 19.34 kB / 381.9 MB, free: 9.422 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.947e-05/0.2472, allocations: 23.28 kB / 382 MB, free: 9.422 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006859/0.2479, allocations: 300.9 kB / 382.2 MB, free: 9.371 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.24e-05/0.2479, allocations: 3.938 kB / 382.3 MB, free: 9.367 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.983e-05/0.248, allocations: 11.81 kB / 382.3 MB, free: 9.367 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.147e-06/0.248, allocations: 11.69 kB / 382.3 MB, free: 9.367 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007813/0.2488, allocations: 252.8 kB / 382.5 MB, free: 9.367 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001731/0.2505, allocations: 1.085 MB / 383.6 MB, free: 8.77 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008453/0.2514, allocations: 215.4 kB / 383.8 MB, free: 8.742 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003285/0.2517, allocations: 89.08 kB / 383.9 MB, free: 8.734 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.339e-05/0.2517, allocations: 6.172 kB / 383.9 MB, free: 8.73 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000452/0.2522, allocations: 164.2 kB / 384.1 MB, free: 8.66 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.353e-06/0.2522, allocations: 1.188 kB / 384.1 MB, free: 8.66 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.002042/0.2543, allocations: 0.5088 MB / 384.6 MB, free: 8.496 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.161e-05/0.2543, allocations: 109.6 kB / 384.7 MB, free: 8.371 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002557/0.2546, allocations: 280.6 kB / 385 MB, free: 8.262 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.935e-05/0.2546, allocations: 31.81 kB / 385 MB, free: 8.23 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.672e-05/0.2547, allocations: 205.6 kB / 385.2 MB, free: 8.09 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.809e-05/0.2547, allocations: 35.2 kB / 385.2 MB, free: 8.07 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.142e-05/0.2548, allocations: 56.31 kB / 385.3 MB, free: 8.051 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.195e-05/0.2549, allocations: 330.9 kB / 385.6 MB, free: 7.738 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003507/0.2552, allocations: 92.84 kB / 385.7 MB, free: 7.738 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003498/0.2556, allocations: 199.8 kB / 385.9 MB, free: 7.609 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006384/0.2562, allocations: 305 kB / 386.2 MB, free: 7.457 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.317e-06/0.2563, allocations: 1.094 kB / 386.2 MB, free: 7.457 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.00115/0.2574, allocations: 433.4 kB / 386.6 MB, free: 7.363 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.231e-05/0.2575, allocations: 38.53 kB / 386.7 MB, free: 7.328 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.2575, allocations: 4.094 kB / 386.7 MB, free: 7.328 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003485/0.2578, allocations: 75.06 kB / 386.7 MB, free: 7.316 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002156/0.258, allocations: 49.5 kB / 386.8 MB, free: 7.316 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002/0.2601, allocations: 1.713 MB / 388.5 MB, free: 5.867 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003725/0.2604, allocations: 53.11 kB / 388.5 MB, free: 5.848 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.438e-05/0.2605, allocations: 17.97 kB / 388.6 MB, free: 5.844 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (23): * Single equations (assignments): 21 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001088/0.2606, allocations: 148.8 kB / 388.7 MB, free: 5.707 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.694e-05/0.2606, allocations: 22.56 kB / 388.7 MB, free: 5.695 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.639e-05/0.2607, allocations: 28.08 kB / 388.8 MB, free: 5.672 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.2607, allocations: 2.219 kB / 388.8 MB, free: 5.672 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.523e-06/0.2607, allocations: 3.938 kB / 388.8 MB, free: 5.668 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.197e-06/0.2607, allocations: 4.641 kB / 388.8 MB, free: 5.668 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002263/0.2609, allocations: 304.4 kB / 389.1 MB, free: 5.426 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.261, allocations: 7.562 kB / 389.1 MB, free: 5.422 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001282/0.2611, allocations: 17.19 kB / 389.1 MB, free: 5.422 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002455/0.2613, allocations: 67.58 kB / 389.2 MB, free: 5.398 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.454e-05/0.2614, allocations: 5.656 kB / 389.2 MB, free: 5.395 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001849/0.2632, allocations: 1.705 MB / 390.9 MB, free: 3.883 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.053e-06/0.2632, allocations: 0.6094 kB / 390.9 MB, free: 3.883 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009606/0.2642, allocations: 306.8 kB / 391.2 MB, free: 3.75 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.388e-05/0.2643, allocations: 120.2 kB / 391.3 MB, free: 3.629 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.602e-05/0.2643, allocations: 5.703 kB / 391.3 MB, free: 3.625 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002757/0.2646, allocations: 30.55 kB / 391.3 MB, free: 3.621 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.542e-05/0.2647, allocations: 26.55 kB / 391.3 MB, free: 3.613 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.267e-05/0.2647, allocations: 4.234 kB / 391.3 MB, free: 3.613 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001759/0.2649, allocations: 204.3 kB / 391.5 MB, free: 3.496 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2649, allocations: 0 / 391.5 MB, free: 3.496 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003526/0.2653, allocations: 80.84 kB / 391.6 MB, free: 3.48 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (7): * Single equations (assignments): 4 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 8.351e-05/0.2654, allocations: 108.9 kB / 391.7 MB, free: 3.379 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009559/0.2663, allocations: 410.4 kB / 392.1 MB, free: 3.145 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.2663, allocations: 0 / 392.1 MB, free: 3.145 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004282/0.2668, allocations: 226.8 kB / 392.4 MB, free: 3 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003233/0.2671, allocations: 39.27 kB / 392.4 MB, free: 2.988 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009072/0.268, allocations: 493.4 kB / 392.9 MB, free: 2.676 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001652/0.2682, allocations: 0.7484 MB / 393.6 MB, free: 1.98 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.335e-05/0.2683, allocations: 24.38 kB / 393.6 MB, free: 1.969 MB / 318.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2683, allocations: 4 kB / 393.7 MB, free: 1.965 MB / 318.1 MB Notification: Performance of Templates: time 0.006589/0.2749, allocations: 4.437 MB / 398.1 MB, free: 1.332 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/InvertingAmp/InvertingAmp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches