Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.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.InvertingAmp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vIn.signalSource.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001245/0.001245, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001674/0.001674, allocations: 208.6 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.492/1.492, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 68.19 kB / 306.9 MB, free: 0.625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1441/0.1453, allocations: 50.54 MB / 357.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.005046/0.1504, allocations: 2.8 MB / 360.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001683/0.1522, allocations: 0.6778 MB / 361 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003986/0.1526, allocations: 7.938 kB / 361 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002341/0.1529, allocations: 43.56 kB / 361 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003852/0.1533, allocations: 95.19 kB / 361.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003912/0.1537, allocations: 87.83 kB / 361.2 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005463/0.1542, allocations: 374.5 kB / 361.5 MB, free: 9.992 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002748/0.1545, allocations: 134.9 kB / 361.7 MB, free: 9.863 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002819/0.1548, allocations: 139.5 kB / 361.8 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002566/0.1551, allocations: 159.4 kB / 362 MB, free: 9.57 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.761e-05/0.1552, allocations: 36 kB / 362 MB, free: 9.535 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.886e-05/0.1552, allocations: 35.94 kB / 362 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.309e-05/0.1553, allocations: 75.75 kB / 362.1 MB, free: 9.426 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000248/0.1556, allocations: 163.2 kB / 362.3 MB, free: 9.266 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004427/0.156, allocations: 379 kB / 362.6 MB, free: 8.895 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.156, allocations: 3.938 kB / 362.6 MB, free: 8.891 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.156, allocations: 0 / 362.6 MB, free: 8.891 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.139e-05/0.1561, allocations: 0 / 362.6 MB, free: 8.891 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001485/0.1575, allocations: 0.6498 MB / 363.3 MB, free: 8.184 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/0.1576, allocations: 12.02 kB / 363.3 MB, free: 8.172 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.244e-05/0.1577, allocations: 32.56 kB / 363.3 MB, free: 8.141 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003401/0.158, allocations: 276.6 kB / 363.6 MB, free: 7.832 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.491e-05/0.1581, allocations: 20.88 kB / 363.6 MB, free: 7.809 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.112e-05/0.1581, allocations: 32.38 kB / 363.7 MB, free: 7.777 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006889/0.1588, allocations: 299.7 kB / 364 MB, free: 7.469 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.457e-06/0.1588, allocations: 0 / 364 MB, free: 7.469 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.265e-05/0.1589, allocations: 12 kB / 364 MB, free: 7.457 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/0.1589, allocations: 4 kB / 364 MB, free: 7.453 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007787/0.1597, allocations: 261.5 kB / 364.2 MB, free: 7.195 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0016/0.1613, allocations: 1.085 MB / 365.3 MB, free: 6.02 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007585/0.1621, allocations: 210.5 kB / 365.5 MB, free: 5.805 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003075/0.1624, allocations: 92.8 kB / 365.6 MB, free: 5.711 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.43e-05/0.1624, allocations: 11.92 kB / 365.6 MB, free: 5.699 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004862/0.1629, allocations: 165.9 kB / 365.8 MB, free: 5.516 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.432e-06/0.1629, allocations: 0 / 365.8 MB, free: 5.516 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.002081/0.165, allocations: 0.5108 MB / 366.3 MB, free: 4.977 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.913e-05/0.1651, allocations: 106.8 kB / 366.4 MB, free: 4.848 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003362/0.1654, allocations: 290.6 kB / 366.7 MB, free: 4.555 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.486e-05/0.1655, allocations: 25.7 kB / 366.7 MB, free: 4.523 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001289/0.1656, allocations: 195.6 kB / 366.9 MB, free: 4.328 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.577e-05/0.1657, allocations: 51.38 kB / 366.9 MB, free: 4.277 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.049e-05/0.1658, allocations: 53.84 kB / 367 MB, free: 4.215 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001234/0.1659, allocations: 330.8 kB / 367.3 MB, free: 3.883 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003372/0.1662, allocations: 96.16 kB / 367.4 MB, free: 3.789 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003988/0.1666, allocations: 203.7 kB / 367.6 MB, free: 3.543 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006868/0.1673, allocations: 293.5 kB / 367.9 MB, free: 3.207 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.1674, allocations: 3.938 kB / 367.9 MB, free: 3.203 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001222/0.1686, allocations: 438.1 kB / 368.3 MB, free: 2.762 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.011e-05/0.1686, allocations: 36.67 kB / 368.4 MB, free: 2.723 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.1687, allocations: 0 / 368.4 MB, free: 2.723 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003554/0.169, allocations: 84.83 kB / 368.5 MB, free: 2.637 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002268/0.1692, allocations: 43.91 kB / 368.5 MB, free: 2.594 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002304/0.1716, allocations: 1.7 MB / 370.2 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003469/0.1719, allocations: 55.66 kB / 370.2 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.312e-05/0.172, allocations: 12 kB / 370.3 MB, free: 0.6875 MB / 302.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.0001612/0.1721, allocations: 160.6 kB / 370.4 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.7e-05/0.1722, allocations: 23.72 kB / 370.4 MB, free: 0.5 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.04e-05/0.1722, allocations: 25.7 kB / 370.5 MB, free: 484 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.1722, allocations: 4 kB / 370.5 MB, free: 480 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.523e-06/0.1722, allocations: 0 / 370.5 MB, free: 480 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.846e-06/0.1722, allocations: 0 / 370.5 MB, free: 480 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002512/0.1725, allocations: 297.3 kB / 370.8 MB, free: 132 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.025e-06/0.1725, allocations: 3.984 kB / 370.8 MB, free: 128 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000122/0.1726, allocations: 15.98 kB / 370.8 MB, free: 112 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002497/0.1729, allocations: 80.67 kB / 370.9 MB, free: 28 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.436e-05/0.1729, allocations: 0 / 370.9 MB, free: 28 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2081/0.3811, allocations: 1.695 MB / 372.6 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.3811, allocations: 0 / 372.6 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001069/0.3822, allocations: 317.9 kB / 372.9 MB, free: 18.98 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.51e-05/0.3823, allocations: 114.7 kB / 373 MB, free: 18.89 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.167e-05/0.3823, allocations: 2.609 kB / 373 MB, free: 18.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002562/0.3826, allocations: 31.16 kB / 373 MB, free: 18.89 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.856e-05/0.3827, allocations: 25.19 kB / 373 MB, free: 18.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.455e-05/0.3827, allocations: 3.859 kB / 373 MB, free: 18.89 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001999/0.3829, allocations: 201 kB / 373.2 MB, free: 18.81 MB / 302.1 MB Notification: Performance of sort global known variables: time 4e-07/0.3829, allocations: 0 / 373.2 MB, free: 18.81 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003799/0.3833, allocations: 75.09 kB / 373.3 MB, free: 18.81 MB / 302.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 0.0001113/0.3834, allocations: 104.5 kB / 373.4 MB, free: 18.72 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009452/0.3844, allocations: 418.1 kB / 373.8 MB, free: 18.55 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.3844, allocations: 3.375 kB / 373.8 MB, free: 18.55 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004318/0.3848, allocations: 229.6 kB / 374 MB, free: 18.44 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003003/0.3851, allocations: 38.77 kB / 374.1 MB, free: 18.43 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000951/0.3861, allocations: 465.9 kB / 374.5 MB, free: 18.21 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001813/0.3863, allocations: 0.7527 MB / 375.3 MB, free: 17.51 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001051/0.3864, allocations: 28.89 kB / 375.3 MB, free: 17.51 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.272e-05/0.3865, allocations: 22.73 kB / 375.3 MB, free: 17.5 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3865, allocations: 1.219 kB / 375.3 MB, free: 17.5 MB / 302.1 MB Notification: Performance of Templates: time 0.009551/0.396, allocations: 4.197 MB / 379.5 MB, free: 17.32 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/InvertingAmp/InvertingAmp.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches