Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008855/0.0008855, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001131/0.001131, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8944/0.8944, allocations: 177 MB / 204.1 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.383e-06/1.383e-06, allocations: 0 / 324.6 MB, free: 15.85 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.823e-05/1.961e-05, allocations: 3.125 kB / 324.6 MB, free: 15.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.0028/0.00282, allocations: 2.781 MB / 327.3 MB, free: 13.04 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009541/0.003774, allocations: 0.7128 MB / 328.1 MB, free: 12.32 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000125/0.003899, allocations: 7.938 kB / 328.1 MB, free: 12.32 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001398/0.004039, allocations: 47.52 kB / 328.1 MB, free: 12.27 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001456/0.004184, allocations: 119 kB / 328.2 MB, free: 12.15 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002361/0.00442, allocations: 99.81 kB / 328.3 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003051/0.004725, allocations: 434 kB / 328.7 MB, free: 11.63 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001687/0.004894, allocations: 79.69 kB / 328.8 MB, free: 11.55 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001862/0.00508, allocations: 231.5 kB / 329 MB, free: 11.32 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001309/0.005211, allocations: 131.6 kB / 329.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.297e-05/0.005254, allocations: 40 kB / 329.2 MB, free: 11.16 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.221e-05/0.005286, allocations: 40 kB / 329.3 MB, free: 11.12 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.073e-05/0.005337, allocations: 83.67 kB / 329.3 MB, free: 11.04 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.628e-05/0.005433, allocations: 135.7 kB / 329.5 MB, free: 10.9 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003407/0.005774, allocations: 474.5 kB / 329.9 MB, free: 10.44 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.005777, allocations: 0 / 329.9 MB, free: 10.44 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.755e-06/0.00578, allocations: 4 kB / 329.9 MB, free: 10.43 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.174e-06/0.005787, allocations: 0 / 329.9 MB, free: 10.43 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0008906/0.006678, allocations: 0.6014 MB / 330.5 MB, free: 9.797 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/0.006722, allocations: 11.98 kB / 330.6 MB, free: 9.785 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.644e-05/0.006768, allocations: 58.73 kB / 330.6 MB, free: 9.719 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.394e-05/0.006822, allocations: 36.75 kB / 330.6 MB, free: 9.684 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003123/0.007135, allocations: 245.2 kB / 330.9 MB, free: 9.418 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.664e-05/0.007161, allocations: 24.97 kB / 330.9 MB, free: 9.391 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.841e-05/0.00719, allocations: 24.38 kB / 330.9 MB, free: 9.367 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004109/0.007601, allocations: 367.7 kB / 331.3 MB, free: 8.984 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.858e-06/0.00761, allocations: 192 / 331.3 MB, free: 8.984 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.197e-05/0.007632, allocations: 16.12 kB / 331.3 MB, free: 8.969 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.007639, allocations: 4 kB / 331.3 MB, free: 8.965 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003584/0.007998, allocations: 258.5 kB / 331.6 MB, free: 8.715 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001114/0.009112, allocations: 0.9873 MB / 332.5 MB, free: 7.648 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003775/0.009489, allocations: 218.5 kB / 332.8 MB, free: 7.426 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001401/0.009629, allocations: 88.8 kB / 332.9 MB, free: 7.336 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.912e-05/0.009649, allocations: 0 / 332.9 MB, free: 7.336 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000303/0.009952, allocations: 259.8 kB / 333.1 MB, free: 7.039 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 1.222e-06/0.009953, allocations: 4 kB / 333.1 MB, free: 7.035 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.0009457/0.0109, allocations: 441 kB / 333.5 MB, free: 6.598 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.399e-05/0.01096, allocations: 136.5 kB / 333.7 MB, free: 6.434 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002248/0.01119, allocations: 289.8 kB / 334 MB, free: 6.141 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.147e-05/0.01121, allocations: 33.64 kB / 334 MB, free: 6.102 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001024/0.01131, allocations: 200 kB / 334.2 MB, free: 5.902 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.052e-05/0.01134, allocations: 51.59 kB / 334.2 MB, free: 5.852 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.074e-05/0.01141, allocations: 53.66 kB / 334.3 MB, free: 5.793 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001028/0.01152, allocations: 334.8 kB / 334.6 MB, free: 5.457 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000183/0.0117, allocations: 121.6 kB / 334.7 MB, free: 5.332 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002259/0.01192, allocations: 298.8 kB / 335 MB, free: 4.973 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003304/0.01225, allocations: 286.9 kB / 335.3 MB, free: 4.652 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.01226, allocations: 7.938 kB / 335.3 MB, free: 4.645 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005667/0.01283, allocations: 440.6 kB / 335.7 MB, free: 4.195 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.24e-05/0.01286, allocations: 36.98 kB / 335.8 MB, free: 4.156 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.01286, allocations: 4 kB / 335.8 MB, free: 4.152 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000239/0.0131, allocations: 84.97 kB / 335.9 MB, free: 4.066 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001084/0.01321, allocations: 43.91 kB / 335.9 MB, free: 4.023 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001406/0.01462, allocations: 1.68 MB / 337.6 MB, free: 2.223 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001611/0.01478, allocations: 51.75 kB / 337.6 MB, free: 2.172 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.708e-05/0.0148, allocations: 11.98 kB / 337.6 MB, free: 2.16 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 7 (gain.opAmp.satNeg,gain.opAmp.satPos,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 (24): * Single equations (assignments): 22 * 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.0001219/0.01492, allocations: 161.8 kB / 337.8 MB, free: 1.992 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.462e-05/0.01494, allocations: 28.08 kB / 337.8 MB, free: 1.965 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.06e-05/0.01497, allocations: 26.11 kB / 337.9 MB, free: 1.941 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.01498, allocations: 4 kB / 337.9 MB, free: 1.938 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.01498, allocations: 4 kB / 337.9 MB, free: 1.934 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.329e-06/0.01498, allocations: 0 / 337.9 MB, free: 1.934 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002023/0.01519, allocations: 272.5 kB / 338.1 MB, free: 1.625 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.01519, allocations: 3.984 kB / 338.1 MB, free: 1.621 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.489e-05/0.01525, allocations: 19.92 kB / 338.2 MB, free: 1.602 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001682/0.01542, allocations: 80.78 kB / 338.2 MB, free: 1.52 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.848e-06/0.01543, allocations: 0 / 338.2 MB, free: 1.52 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001151/0.01658, allocations: 1.684 MB / 339.9 MB, free: 15.71 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/0.01658, allocations: 3.938 kB / 339.9 MB, free: 15.71 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000443/0.01703, allocations: 313.6 kB / 340.2 MB, free: 15.38 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.586e-05/0.01706, allocations: 39.86 kB / 340.3 MB, free: 15.34 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.15e-05/0.01708, allocations: 4 kB / 340.3 MB, free: 15.34 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000105/0.01719, allocations: 27.97 kB / 340.3 MB, free: 15.31 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.461e-05/0.01725, allocations: 31.89 kB / 340.3 MB, free: 15.28 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.13e-05/0.01727, allocations: 8 kB / 340.3 MB, free: 15.27 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001384/0.0174, allocations: 201.2 kB / 340.5 MB, free: 15.07 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0174, allocations: 0 / 340.5 MB, free: 15.07 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002371/0.01764, allocations: 83.89 kB / 340.6 MB, free: 14.99 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count,gain.opAmp.satPos,gain.opAmp.satNeg) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 8 * 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.0006585/0.0183, allocations: 0.8511 MB / 341.5 MB, free: 14.11 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005972/0.0189, allocations: 438.2 kB / 341.9 MB, free: 13.65 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.0189, allocations: 4.625 kB / 341.9 MB, free: 13.64 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002502/0.01915, allocations: 246.4 kB / 342.1 MB, free: 13.39 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002452/0.0194, allocations: 48.61 kB / 342.2 MB, free: 13.34 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003451/0.02285, allocations: 3.209 MB / 345.4 MB, free: 9.945 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001138/0.02296, allocations: 151.8 kB / 345.5 MB, free: 9.777 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 9.267e-05/0.02305, allocations: 26.28 kB / 345.6 MB, free: 9.75 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000106/0.02316, allocations: 84.47 kB / 345.7 MB, free: 9.668 MB / 314.7 MB Notification: Performance of SimCode: time 1.162e-06/0.02316, allocations: 0 / 345.7 MB, free: 9.668 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0233/0.04646, allocations: 8.067 MB / 353.7 MB, free: 1.762 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.567/7.613, allocations: 14.95 kB / 353.7 MB, free: 1.75 MB / 314.7 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingAmplifier/InvertingAmplifier.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.270221154205501]