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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008523/0.0008523, allocations: 84.34 kB / 20.67 MB, free: 3.855 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.0008777/0.0008777, allocations: 160.9 kB / 23.95 MB, free: 0.5781 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.8613/0.8613, allocations: 177 MB / 204.1 MB, free: 5.723 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.InvertingAmp,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 3.938 kB / 324.5 MB, free: 15.84 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.252e-05/2.416e-05, allocations: 3.125 kB / 324.5 MB, free: 15.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.002881/0.002905, allocations: 2.629 MB / 327.2 MB, free: 13.19 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001044/0.003949, allocations: 0.6544 MB / 327.8 MB, free: 12.53 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001487/0.004097, allocations: 7.938 kB / 327.8 MB, free: 12.52 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001441/0.004241, allocations: 43.56 kB / 327.9 MB, free: 12.48 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001682/0.00441, allocations: 107 kB / 328 MB, free: 12.37 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002684/0.004678, allocations: 87.75 kB / 328.1 MB, free: 12.29 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000369/0.005047, allocations: 390.3 kB / 328.5 MB, free: 11.9 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001702/0.005217, allocations: 87.3 kB / 328.5 MB, free: 11.82 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002104/0.005428, allocations: 219.5 kB / 328.8 MB, free: 11.61 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001413/0.005569, allocations: 127.6 kB / 328.9 MB, free: 11.48 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.095e-05/0.00561, allocations: 32 kB / 328.9 MB, free: 11.45 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.149e-05/0.005641, allocations: 36 kB / 328.9 MB, free: 11.41 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.596e-05/0.005687, allocations: 67.75 kB / 329 MB, free: 11.35 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.221e-05/0.00578, allocations: 123.7 kB / 329.1 MB, free: 11.23 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003031/0.006083, allocations: 378.8 kB / 329.5 MB, free: 10.86 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.006086, allocations: 7.938 kB / 329.5 MB, free: 10.85 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.006088, allocations: 8 kB / 329.5 MB, free: 10.84 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.083e-06/0.006095, allocations: 0 / 329.5 MB, free: 10.84 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0009186/0.007014, allocations: 0.5741 MB / 330.1 MB, free: 10.23 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.007054, allocations: 12.03 kB / 330.1 MB, free: 10.22 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.672e-05/0.007101, allocations: 58.73 kB / 330.2 MB, free: 10.15 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.786e-05/0.007159, allocations: 36.7 kB / 330.2 MB, free: 10.12 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002894/0.007448, allocations: 222.1 kB / 330.4 MB, free: 9.871 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.635e-05/0.007465, allocations: 16.88 kB / 330.4 MB, free: 9.855 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.747e-05/0.007492, allocations: 28.36 kB / 330.5 MB, free: 9.828 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004277/0.00792, allocations: 350.7 kB / 330.8 MB, free: 9.465 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.00793, allocations: 4.125 kB / 330.8 MB, free: 9.461 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.403e-05/0.007954, allocations: 16.12 kB / 330.8 MB, free: 9.445 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.00796, allocations: 4 kB / 330.8 MB, free: 9.441 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004096/0.00837, allocations: 249.8 kB / 331.1 MB, free: 9.195 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001045/0.009415, allocations: 0.9821 MB / 332 MB, free: 8.125 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004104/0.009826, allocations: 198.6 kB / 332.2 MB, free: 7.922 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001503/0.009976, allocations: 92.73 kB / 332.3 MB, free: 7.828 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.901e-05/0.009995, allocations: 3.938 kB / 332.3 MB, free: 7.824 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002985/0.01029, allocations: 217.3 kB / 332.5 MB, free: 7.578 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 1.653e-06/0.0103, allocations: 0 / 332.5 MB, free: 7.578 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.001121/0.01142, allocations: 450.1 kB / 333 MB, free: 7.129 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.543e-05/0.01147, allocations: 110.8 kB / 333.1 MB, free: 6.996 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002086/0.01168, allocations: 281.8 kB / 333.4 MB, free: 6.707 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.909e-05/0.0117, allocations: 29.7 kB / 333.4 MB, free: 6.672 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001041/0.0118, allocations: 208 kB / 333.6 MB, free: 6.465 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.091e-05/0.01183, allocations: 39.69 kB / 333.6 MB, free: 6.426 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.921e-05/0.0119, allocations: 53.89 kB / 333.7 MB, free: 6.363 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001014/0.01201, allocations: 338.8 kB / 334 MB, free: 6.023 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001868/0.01219, allocations: 125.8 kB / 334.1 MB, free: 5.895 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002319/0.01242, allocations: 283.2 kB / 334.4 MB, free: 5.551 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000366/0.01279, allocations: 297.5 kB / 334.7 MB, free: 5.211 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.01279, allocations: 4 kB / 334.7 MB, free: 5.207 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006291/0.01342, allocations: 459.1 kB / 335.2 MB, free: 4.738 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.025e-05/0.01345, allocations: 33.7 kB / 335.2 MB, free: 4.699 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.01346, allocations: 4 kB / 335.2 MB, free: 4.695 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002146/0.01367, allocations: 76.73 kB / 335.3 MB, free: 4.617 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001119/0.01379, allocations: 44.06 kB / 335.3 MB, free: 4.574 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001455/0.01524, allocations: 1.604 MB / 336.9 MB, free: 2.855 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001887/0.01543, allocations: 55.94 kB / 337 MB, free: 2.801 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.513e-05/0.01544, allocations: 8 kB / 337 MB, free: 2.793 MB / 298.7 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.0001062/0.01555, allocations: 149.7 kB / 337.1 MB, free: 2.637 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.423e-05/0.01557, allocations: 27.86 kB / 337.2 MB, free: 2.609 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.385e-05/0.01561, allocations: 29.77 kB / 337.2 MB, free: 2.582 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.01561, allocations: 4 kB / 337.2 MB, free: 2.578 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.863e-06/0.01561, allocations: 0 / 337.2 MB, free: 2.578 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.01562, allocations: 0 / 337.2 MB, free: 2.578 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001715/0.01579, allocations: 244.5 kB / 337.4 MB, free: 2.297 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.01579, allocations: 7.938 kB / 337.4 MB, free: 2.289 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.595e-05/0.01585, allocations: 15.97 kB / 337.5 MB, free: 2.273 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001536/0.016, allocations: 72.81 kB / 337.5 MB, free: 2.199 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.578e-06/0.01601, allocations: 0 / 337.5 MB, free: 2.199 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001161/0.01717, allocations: 1.585 MB / 339.1 MB, free: 0.4961 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.01717, allocations: 7.875 kB / 339.1 MB, free: 500 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005012/0.01767, allocations: 313.6 kB / 339.4 MB, free: 164 kB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.166e-05/0.01773, allocations: 39.77 kB / 339.5 MB, free: 124 kB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.041e-05/0.01776, allocations: 4 kB / 339.5 MB, free: 120 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001056/0.01786, allocations: 27.95 kB / 339.5 MB, free: 92 kB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.996e-05/0.01793, allocations: 23.97 kB / 339.5 MB, free: 68 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.287e-06/0.01794, allocations: 4 kB / 339.5 MB, free: 64 kB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001392/0.01808, allocations: 205.2 kB / 339.7 MB, free: 15.87 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.01808, allocations: 0 / 339.7 MB, free: 15.87 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002481/0.01833, allocations: 79.89 kB / 339.8 MB, free: 15.79 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: 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.0006818/0.01901, allocations: 0.8432 MB / 340.6 MB, free: 14.91 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005848/0.01959, allocations: 439.5 kB / 341.1 MB, free: 14.45 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.0196, allocations: 0 / 341.1 MB, free: 14.45 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002333/0.01983, allocations: 223.2 kB / 341.3 MB, free: 14.22 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002034/0.02003, allocations: 49.39 kB / 341.3 MB, free: 14.18 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003023/0.02306, allocations: 3.111 MB / 344.5 MB, free: 10.86 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.869e-05/0.02314, allocations: 146.9 kB / 344.6 MB, free: 10.7 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 8.23e-05/0.02323, allocations: 30.22 kB / 344.6 MB, free: 10.67 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.664e-05/0.02331, allocations: 80.47 kB / 344.7 MB, free: 10.59 MB / 314.7 MB Notification: Performance of SimCode: time 6.21e-07/0.02331, allocations: 0 / 344.7 MB, free: 10.59 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02306/0.04637, allocations: 7.586 MB / 352.3 MB, free: 3.156 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.703/7.749, allocations: 0 / 352.3 MB, free: 3.156 MB / 314.7 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.3397017698735]