Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001583/0.001583, allocations: 123.4 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001944/0.001944, allocations: 200.3 kB / 20.74 MB, free: 2.32 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.431/1.431, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00162/0.00162, allocations: 51.91 kB / 373 MB, free: 10.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1261/0.1277, allocations: 53.32 MB / 426.3 MB, free: 4.766 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.004785/0.1325, allocations: 2.822 MB / 429.2 MB, free: 1.926 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001406/0.1339, allocations: 0.6739 MB / 429.8 MB, free: 1.246 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002599/0.1342, allocations: 4 kB / 429.8 MB, free: 1.242 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002057/0.1344, allocations: 51.5 kB / 429.9 MB, free: 1.191 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003062/0.1347, allocations: 87.19 kB / 430 MB, free: 1.105 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003302/0.135, allocations: 103.8 kB / 430.1 MB, free: 1.004 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005906/0.1356, allocations: 370.5 kB / 430.4 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002364/0.1358, allocations: 86.89 kB / 430.5 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002625/0.1361, allocations: 151.4 kB / 430.7 MB, free: 412 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002474/0.1364, allocations: 159.4 kB / 430.8 MB, free: 252 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.871e-05/0.1364, allocations: 36 kB / 430.9 MB, free: 216 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.381e-05/0.1365, allocations: 36 kB / 430.9 MB, free: 180 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.589e-05/0.1366, allocations: 79.67 kB / 431 MB, free: 100 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1913/0.3279, allocations: 157.3 kB / 431.1 MB, free: 8.035 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006288/0.3285, allocations: 378.7 kB / 431.5 MB, free: 8.012 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.3285, allocations: 0 / 431.5 MB, free: 8.012 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.3285, allocations: 2.391 kB / 431.5 MB, free: 8.012 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.864e-06/0.3285, allocations: 0 / 431.5 MB, free: 8.012 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.001324/0.3299, allocations: 0.6561 MB / 432.2 MB, free: 7.523 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.76e-05/0.3299, allocations: 9.406 kB / 432.2 MB, free: 7.523 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.346e-05/0.33, allocations: 61.67 kB / 432.2 MB, free: 7.484 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.079e-05/0.33, allocations: 37.7 kB / 432.3 MB, free: 7.465 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000347/0.3304, allocations: 274.8 kB / 432.5 MB, free: 7.238 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.186e-05/0.3304, allocations: 22.59 kB / 432.5 MB, free: 7.238 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.493e-05/0.3305, allocations: 25.34 kB / 432.6 MB, free: 7.238 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006251/0.3311, allocations: 300.9 kB / 432.9 MB, free: 7.184 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.3311, allocations: 0.875 kB / 432.9 MB, free: 7.184 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.947e-05/0.3311, allocations: 12.73 kB / 432.9 MB, free: 7.184 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.045e-05/0.3311, allocations: 7.672 kB / 432.9 MB, free: 7.184 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007723/0.3319, allocations: 251.4 kB / 433.1 MB, free: 7.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001416/0.3333, allocations: 1.092 MB / 434.2 MB, free: 6.582 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007652/0.3341, allocations: 211.7 kB / 434.4 MB, free: 6.559 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002934/0.3344, allocations: 85.61 kB / 434.5 MB, free: 6.551 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.669e-05/0.3344, allocations: 1 kB / 434.5 MB, free: 6.551 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004167/0.3348, allocations: 168.7 kB / 434.7 MB, free: 6.48 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.303e-06/0.3348, allocations: 0 / 434.7 MB, free: 6.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.002077/0.3369, allocations: 0.5069 MB / 435.2 MB, free: 6.32 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.895e-05/0.3369, allocations: 109.8 kB / 435.3 MB, free: 6.195 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002651/0.3372, allocations: 285.3 kB / 435.6 MB, free: 6.086 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.925e-05/0.3372, allocations: 31.98 kB / 435.6 MB, free: 6.055 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.059e-05/0.3373, allocations: 194.9 kB / 435.8 MB, free: 5.922 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.104e-05/0.3373, allocations: 43.02 kB / 435.8 MB, free: 5.898 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.412e-05/0.3374, allocations: 59.22 kB / 435.9 MB, free: 5.871 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.744e-05/0.3375, allocations: 334.1 kB / 436.2 MB, free: 5.559 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003367/0.3378, allocations: 94.92 kB / 436.3 MB, free: 5.559 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003535/0.3382, allocations: 196.7 kB / 436.5 MB, free: 5.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006524/0.3388, allocations: 304.2 kB / 436.8 MB, free: 5.277 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.549e-06/0.3388, allocations: 12.91 kB / 436.8 MB, free: 5.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001183/0.34, allocations: 417.5 kB / 437.2 MB, free: 5.184 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.706e-05/0.3401, allocations: 37.72 kB / 437.3 MB, free: 5.152 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/0.3401, allocations: 3.984 kB / 437.3 MB, free: 5.152 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00036/0.3404, allocations: 75.16 kB / 437.3 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002126/0.3406, allocations: 47.98 kB / 437.4 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002089/0.3427, allocations: 1.712 MB / 439.1 MB, free: 3.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003458/0.3431, allocations: 53.25 kB / 439.1 MB, free: 3.754 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.415e-05/0.3431, allocations: 13.52 kB / 439.2 MB, free: 3.754 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.0001128/0.3432, allocations: 154 kB / 439.3 MB, free: 3.629 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.739e-05/0.3432, allocations: 28.33 kB / 439.3 MB, free: 3.613 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.922e-05/0.3433, allocations: 28.81 kB / 439.4 MB, free: 3.602 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.3433, allocations: 4.969 kB / 439.4 MB, free: 3.602 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.975e-06/0.3433, allocations: 2.859 kB / 439.4 MB, free: 3.602 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.3433, allocations: 1.172 kB / 439.4 MB, free: 3.602 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002351/0.3435, allocations: 301.3 kB / 439.7 MB, free: 3.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.3435, allocations: 0 / 439.7 MB, free: 3.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001231/0.3437, allocations: 26.62 kB / 439.7 MB, free: 3.406 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002526/0.3439, allocations: 65.23 kB / 439.8 MB, free: 3.398 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.46e-05/0.3439, allocations: 2.406 kB / 439.8 MB, free: 3.398 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001801/0.3457, allocations: 1.706 MB / 441.5 MB, free: 2.031 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.3457, allocations: 2.25 kB / 441.5 MB, free: 2.031 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009874/0.3467, allocations: 309.9 kB / 441.8 MB, free: 1.906 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.221e-05/0.3468, allocations: 111.2 kB / 441.9 MB, free: 1.793 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.499e-05/0.3468, allocations: 10.47 kB / 441.9 MB, free: 1.789 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000245/0.3471, allocations: 30.17 kB / 441.9 MB, free: 1.785 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.453e-05/0.3472, allocations: 24.58 kB / 441.9 MB, free: 1.777 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.347e-05/0.3472, allocations: 3.094 kB / 441.9 MB, free: 1.777 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001763/0.3474, allocations: 203.9 kB / 442.1 MB, free: 1.656 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3474, allocations: 0.625 kB / 442.1 MB, free: 1.656 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003554/0.3477, allocations: 80.31 kB / 442.2 MB, free: 1.641 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.001175/0.3489, allocations: 0.8482 MB / 443.1 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009259/0.3498, allocations: 409.2 kB / 443.5 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.3498, allocations: 0 / 443.5 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004234/0.3502, allocations: 223.8 kB / 443.7 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002831/0.3505, allocations: 47.58 kB / 443.7 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005334/0.3559, allocations: 3.016 MB / 446.8 MB, free: 14.68 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004089/0.3563, allocations: 0.7511 MB / 447.5 MB, free: 13.98 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001102/0.3564, allocations: 26.19 kB / 447.5 MB, free: 13.97 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001269/0.3565, allocations: 78.83 kB / 447.6 MB, free: 13.91 MB / 366.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3565, allocations: 4.688 kB / 447.6 MB, free: 13.91 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03791/0.3944, allocations: 6.863 MB / 454.5 MB, free: 12.33 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.52/11.91, allocations: 9.984 kB / 454.5 MB, free: 12.32 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_InvertingAmp_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/InvertingAmp/InvertingAmp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.254633537027985]