Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.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.DifferenceAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|C1.v|C2.v|C3.v|C4.v|C5.v|Transistor1.Tr.C.v|Transistor1.ct.v|Transistor2.Tr.C.v|Transistor2.ct.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|C1.v|C2.v|C3.v|C4.v|C5.v|Transistor1.Tr.C.v|Transistor1.ct.v|Transistor2.Tr.C.v|Transistor2.ct.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001101/0.001102, allocations: 93.55 kB / 16.3 MB, free: 6.133 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.0009775/0.0009777, allocations: 178.2 kB / 17.19 MB, free: 6.016 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.488/1.488, allocations: 223.2 MB / 241.1 MB, free: 288 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003059/0.0003059, allocations: 11.94 kB / 300.7 MB, free: 6.469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.144/0.1444, allocations: 50.42 MB / 351.1 MB, free: 4.043 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.005548/0.1499, allocations: 4.828 MB / 356 MB, free: 15.19 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003055/0.153, allocations: 1.538 MB / 357.5 MB, free: 13.65 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000448/0.1535, allocations: 27.88 kB / 357.5 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002222/0.1537, allocations: 119 kB / 357.7 MB, free: 13.5 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007881/0.1545, allocations: 347 kB / 358 MB, free: 13.16 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009135/0.1555, allocations: 259.6 kB / 358.2 MB, free: 12.91 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001201/0.1567, allocations: 0.8788 MB / 359.1 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004764/0.1572, allocations: 308.5 kB / 359.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004927/0.1577, allocations: 394.7 kB / 359.8 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005536/0.1582, allocations: 485.9 kB / 360.3 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000104/0.1583, allocations: 64 kB / 360.3 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002266/0.1586, allocations: 87.97 kB / 360.4 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001632/0.1588, allocations: 183.3 kB / 360.6 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001963/0.159, allocations: 221.1 kB / 360.8 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001026/0.16, allocations: 1.142 MB / 362 MB, free: 9.152 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.16, allocations: 0 / 362 MB, free: 9.152 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.16, allocations: 3.938 kB / 362 MB, free: 9.148 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.894e-05/0.16, allocations: 0 / 362 MB, free: 9.148 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: 221 * Number of variables: 221 Notification: Performance of Generate backend data structure: time 0.002481/0.1625, allocations: 1.231 MB / 363.2 MB, free: 7.867 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.828e-05/0.1626, allocations: 8.031 kB / 363.2 MB, free: 7.859 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002018/0.1628, allocations: 114.7 kB / 363.3 MB, free: 7.746 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007239/0.1635, allocations: 0.5296 MB / 363.9 MB, free: 7.172 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.476e-05/0.1636, allocations: 65.94 kB / 363.9 MB, free: 7.105 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001462/0.1638, allocations: 91.91 kB / 364 MB, free: 7.016 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001527/0.1653, allocations: 0.8507 MB / 364.9 MB, free: 6.16 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.003e-05/0.1653, allocations: 0 / 364.9 MB, free: 6.16 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.555e-05/0.1654, allocations: 36 kB / 364.9 MB, free: 6.125 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.213e-05/0.1654, allocations: 27.89 kB / 364.9 MB, free: 6.098 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001569/0.167, allocations: 0.8746 MB / 365.8 MB, free: 5.223 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005254/0.1723, allocations: 3.273 MB / 369.1 MB, free: 1.824 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001098/0.1734, allocations: 0.6844 MB / 369.8 MB, free: 1.125 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.76e-05/0.1735, allocations: 8.562 kB / 369.8 MB, free: 1.117 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.148e-05/0.1735, allocations: 47.11 kB / 369.8 MB, free: 1.062 MB / 302.1 MB Notification: Performance of pre-optimization done (n=69): time 2.083e-06/0.1735, allocations: 0 / 369.8 MB, free: 1.062 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.254/0.4275, allocations: 2.313 MB / 372.1 MB, free: 23.79 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.961e-05/0.4276, allocations: 59.84 kB / 372.2 MB, free: 23.72 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001078/0.4287, allocations: 0.6023 MB / 372.8 MB, free: 23.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.044e-05/0.4288, allocations: 40.39 kB / 372.8 MB, free: 23.56 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000475/0.4292, allocations: 437.1 kB / 373.2 MB, free: 23.35 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002615/0.4295, allocations: 264 kB / 373.5 MB, free: 23.19 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.692e-05/0.4296, allocations: 17.03 kB / 373.5 MB, free: 23.19 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.4297, allocations: 385.5 kB / 373.9 MB, free: 22.88 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007345/0.4305, allocations: 339.4 kB / 374.2 MB, free: 22.83 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008766/0.4314, allocations: 474.4 kB / 374.7 MB, free: 22.55 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007846/0.4322, allocations: 393.8 kB / 375.1 MB, free: 22.38 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.179e-06/0.4322, allocations: 0.9688 kB / 375.1 MB, free: 22.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002249/0.4344, allocations: 1.138 MB / 376.2 MB, free: 21.9 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.8e-05/0.4345, allocations: 6.875 kB / 376.2 MB, free: 21.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.284e-05/0.4345, allocations: 3.312 kB / 376.2 MB, free: 21.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005879/0.4351, allocations: 186.9 kB / 376.4 MB, free: 21.85 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009205/0.436, allocations: 210.6 kB / 376.6 MB, free: 21.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003679/0.4397, allocations: 2.686 MB / 379.3 MB, free: 19.78 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008187/0.4405, allocations: 43.62 kB / 379.3 MB, free: 19.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.339e-05/0.4406, allocations: 34.86 kB / 379.4 MB, free: 19.76 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * 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 {(5,72.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004834/0.4411, allocations: 233.2 kB / 379.6 MB, free: 19.57 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000151/0.4413, allocations: 84.08 kB / 379.7 MB, free: 19.52 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001743/0.4415, allocations: 94.3 kB / 379.8 MB, free: 19.45 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.438e-06/0.4415, allocations: 7.734 kB / 379.8 MB, free: 19.45 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.642e-05/0.4415, allocations: 3.094 kB / 379.8 MB, free: 19.45 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.56e-05/0.4415, allocations: 5.938 kB / 379.8 MB, free: 19.45 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00137/0.4429, allocations: 0.8836 MB / 380.7 MB, free: 18.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.224e-06/0.4429, allocations: 4.422 kB / 380.7 MB, free: 18.99 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007824/0.4437, allocations: 156.1 kB / 380.8 MB, free: 18.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005487/0.4443, allocations: 179.3 kB / 381 MB, free: 18.93 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.828e-05/0.4443, allocations: 22.44 kB / 381 MB, free: 18.92 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003367/0.4477, allocations: 2.696 MB / 383.7 MB, free: 16.88 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.4477, allocations: 1.031 kB / 383.7 MB, free: 16.88 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002726/0.4505, allocations: 1.467 MB / 385.2 MB, free: 16.17 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002153/0.4507, allocations: 147.8 kB / 385.3 MB, free: 16.03 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001064/0.4508, allocations: 18.23 kB / 385.4 MB, free: 16.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000616/0.4514, allocations: 67.8 kB / 385.4 MB, free: 16 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000164/0.4516, allocations: 51.81 kB / 385.5 MB, free: 16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.946e-05/0.4517, allocations: 27.89 kB / 385.5 MB, free: 15.99 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005696/0.4522, allocations: 422.8 kB / 385.9 MB, free: 15.79 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4522, allocations: 7.938 kB / 385.9 MB, free: 15.79 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001035/0.4533, allocations: 238.9 kB / 386.2 MB, free: 15.76 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (C1.v,C4.v,C5.v,C2.v,C3.v,Transistor1.ct.v,Transistor1.Tr.vcs,Transistor2.ct.v,Transistor2.Tr.vcs) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * 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 {(5,72.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003107/0.4536, allocations: 134.1 kB / 386.3 MB, free: 15.66 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002666/0.4563, allocations: 1.053 MB / 387.3 MB, free: 15.21 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.272e-06/0.4563, allocations: 5.656 kB / 387.3 MB, free: 15.2 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001424/0.4577, allocations: 0.6487 MB / 388 MB, free: 14.89 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007534/0.4585, allocations: 122.9 kB / 388.1 MB, free: 14.84 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003699/0.4622, allocations: 2.419 MB / 390.5 MB, free: 13.3 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005649/0.4628, allocations: 1.001 MB / 391.5 MB, free: 12.59 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004405/0.4632, allocations: 94.22 kB / 391.6 MB, free: 12.55 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001614/0.4634, allocations: 52.16 kB / 391.7 MB, free: 12.55 MB / 302.1 MB Notification: Performance of SimCode: time 2.244e-06/0.4634, allocations: 3.906 kB / 391.7 MB, free: 12.55 MB / 302.1 MB Notification: Performance of Templates: time 0.01788/0.4813, allocations: 10.03 MB / 401.7 MB, free: 5.945 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/DifferenceAmplifier/DifferenceAmplifier.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches