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.00135/0.00135, allocations: 120.4 kB / 18.5 MB, free: 4.578 MB / 14.72 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.00133/0.00133, allocations: 208.9 kB / 21.46 MB, free: 1.625 MB / 14.72 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 1.475/1.475, allocations: 230.2 MB / 254.5 MB, free: 15.23 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001819/0.001819, allocations: 67.89 kB / 373.4 MB, free: 10.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1209, allocations: 53.32 MB / 426.7 MB, free: 4.938 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.004284/0.1252, allocations: 2.81 MB / 429.5 MB, free: 2.113 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00129/0.1265, allocations: 0.6777 MB / 430.2 MB, free: 1.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001419/0.1266, allocations: 7.938 kB / 430.2 MB, free: 1.422 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001756/0.1268, allocations: 47.56 kB / 430.2 MB, free: 1.375 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002024/0.127, allocations: 91.19 kB / 430.3 MB, free: 1.285 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002777/0.1273, allocations: 99.75 kB / 430.4 MB, free: 1.188 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004477/0.1277, allocations: 370.5 kB / 430.8 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002102/0.1279, allocations: 82.95 kB / 430.9 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001919/0.1281, allocations: 155.4 kB / 431 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000217/0.1284, allocations: 163.3 kB / 431.2 MB, free: 436 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.811e-05/0.1284, allocations: 32 kB / 431.2 MB, free: 404 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.392e-05/0.1285, allocations: 36 kB / 431.2 MB, free: 368 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.281e-05/0.1285, allocations: 71.75 kB / 431.3 MB, free: 296 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001744/0.1287, allocations: 167.2 kB / 431.5 MB, free: 128 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2078/0.3365, allocations: 371.6 kB / 431.8 MB, free: 8.422 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.663e-06/0.3366, allocations: 0.6875 kB / 431.8 MB, free: 8.422 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3366, allocations: 0 / 431.8 MB, free: 8.422 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.337e-05/0.3366, allocations: 0.5938 kB / 431.8 MB, free: 8.422 MB / 350.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.0013/0.3379, allocations: 0.6593 MB / 432.5 MB, free: 7.934 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.764e-05/0.3379, allocations: 9.469 kB / 432.5 MB, free: 7.934 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.95e-05/0.338, allocations: 58.03 kB / 432.6 MB, free: 7.895 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.956e-05/0.3381, allocations: 40.42 kB / 432.6 MB, free: 7.875 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003852/0.3385, allocations: 273.4 kB / 432.9 MB, free: 7.652 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.76e-05/0.3385, allocations: 20.78 kB / 432.9 MB, free: 7.652 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.534e-05/0.3385, allocations: 25.31 kB / 432.9 MB, free: 7.652 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000635/0.3392, allocations: 303.2 kB / 433.2 MB, free: 7.594 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.484e-05/0.3392, allocations: 2.906 kB / 433.2 MB, free: 7.594 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.912e-05/0.3392, allocations: 14.16 kB / 433.2 MB, free: 7.594 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.058e-05/0.3392, allocations: 5.688 kB / 433.2 MB, free: 7.594 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007326/0.3399, allocations: 253 kB / 433.5 MB, free: 7.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00139/0.3413, allocations: 1.093 MB / 434.6 MB, free: 6.992 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006864/0.342, allocations: 204.2 kB / 434.8 MB, free: 6.969 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000273/0.3423, allocations: 83.25 kB / 434.9 MB, free: 6.961 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.65e-05/0.3423, allocations: 5.609 kB / 434.9 MB, free: 6.961 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004146/0.3427, allocations: 169 kB / 435 MB, free: 6.891 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.724e-06/0.3427, allocations: 0 / 435 MB, free: 6.891 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.001991/0.3447, allocations: 0.5048 MB / 435.5 MB, free: 6.734 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.811e-05/0.3448, allocations: 109.5 kB / 435.6 MB, free: 6.609 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003221/0.3451, allocations: 290.5 kB / 435.9 MB, free: 6.496 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.233e-05/0.3451, allocations: 31.8 kB / 436 MB, free: 6.465 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001162/0.3452, allocations: 194.8 kB / 436.1 MB, free: 6.332 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.261e-05/0.3453, allocations: 42.86 kB / 436.2 MB, free: 6.309 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001021/0.3454, allocations: 57.27 kB / 436.2 MB, free: 6.285 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.77e-05/0.3454, allocations: 333.2 kB / 436.6 MB, free: 5.973 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003205/0.3458, allocations: 95.14 kB / 436.7 MB, free: 5.969 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003479/0.3461, allocations: 203.4 kB / 436.9 MB, free: 5.836 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006266/0.3467, allocations: 304 kB / 437.2 MB, free: 5.684 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/0.3467, allocations: 5.281 kB / 437.2 MB, free: 5.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001139/0.3479, allocations: 427.4 kB / 437.6 MB, free: 5.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.711e-05/0.3479, allocations: 33.88 kB / 437.6 MB, free: 5.559 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.258e-06/0.3479, allocations: 4.219 kB / 437.6 MB, free: 5.559 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003381/0.3483, allocations: 78.94 kB / 437.7 MB, free: 5.543 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002082/0.3485, allocations: 45.09 kB / 437.7 MB, free: 5.543 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00211/0.3506, allocations: 1.71 MB / 439.4 MB, free: 4.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003737/0.351, allocations: 57.92 kB / 439.5 MB, free: 4.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.771e-05/0.351, allocations: 13.53 kB / 439.5 MB, free: 4.16 MB / 350.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.0001442/0.3511, allocations: 149.2 kB / 439.7 MB, free: 4.039 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.032e-05/0.3512, allocations: 27.16 kB / 439.7 MB, free: 4.023 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.973e-05/0.3512, allocations: 28.11 kB / 439.7 MB, free: 4.012 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.3512, allocations: 5.156 kB / 439.7 MB, free: 4.008 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.785e-06/0.3512, allocations: 1.938 kB / 439.7 MB, free: 4.008 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-06/0.3512, allocations: 1.078 kB / 439.7 MB, free: 4.008 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002887/0.3515, allocations: 297.1 kB / 440 MB, free: 3.816 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.3515, allocations: 1.094 kB / 440 MB, free: 3.816 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001235/0.3517, allocations: 24.11 kB / 440 MB, free: 3.816 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002503/0.3519, allocations: 75.52 kB / 440.1 MB, free: 3.805 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.466e-05/0.3519, allocations: 5.859 kB / 440.1 MB, free: 3.805 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001819/0.3537, allocations: 1.698 MB / 441.8 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.3537, allocations: 0 / 441.8 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009468/0.3547, allocations: 313.5 kB / 442.1 MB, free: 2.348 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.75e-05/0.3548, allocations: 113.9 kB / 442.2 MB, free: 2.242 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.837e-05/0.3548, allocations: 3.562 kB / 442.2 MB, free: 2.242 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002336/0.3551, allocations: 29.03 kB / 442.3 MB, free: 2.238 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.352e-05/0.3551, allocations: 20.48 kB / 442.3 MB, free: 2.234 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.368e-05/0.3552, allocations: 6.906 kB / 442.3 MB, free: 2.23 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002147/0.3554, allocations: 211.9 kB / 442.5 MB, free: 2.105 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3554, allocations: 0 / 442.5 MB, free: 2.105 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003758/0.3557, allocations: 76.42 kB / 442.6 MB, free: 2.094 MB / 350.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.001135/0.3569, allocations: 0.8495 MB / 443.4 MB, free: 1.426 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000905/0.3578, allocations: 411.7 kB / 443.8 MB, free: 1.191 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.3578, allocations: 4.25 kB / 443.8 MB, free: 1.188 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004002/0.3582, allocations: 220.6 kB / 444 MB, free: 1.047 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000292/0.3585, allocations: 48.03 kB / 444.1 MB, free: 1.031 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005239/0.3637, allocations: 3.002 MB / 447.1 MB, free: 15.09 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004459/0.3642, allocations: 0.7549 MB / 447.8 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001302/0.3643, allocations: 26.48 kB / 447.9 MB, free: 14.38 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001279/0.3644, allocations: 78.97 kB / 447.9 MB, free: 14.32 MB / 366.1 MB Notification: Performance of SimCode: time 7.82e-07/0.3644, allocations: 0 / 447.9 MB, free: 14.32 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03574/0.4002, allocations: 6.863 MB / 454.8 MB, free: 12.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.02/12.42, allocations: 2.25 kB / 454.8 MB, free: 12.75 MB / 366.1 MB " [Timeout remaining time 647] (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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/InvertingAmp/InvertingAmp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 14.85877666901797]