Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0008481/0.0008481, allocations: 83.69 kB / 21.43 MB, free: 3.125 MB / 18.57 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.006272/0.006272, allocations: 166.1 kB / 24.7 MB, free: 9.41 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8478/0.8478, allocations: 158.6 MB / 186.5 MB, free: 3.043 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.393e-06/1.393e-06, allocations: 0 / 298.5 MB, free: 3.512 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.786e-05/1.926e-05, allocations: 6.281 kB / 298.5 MB, free: 3.504 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.002531/0.00255, allocations: 2.563 MB / 301 MB, free: 0.918 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009381/0.003488, allocations: 0.6669 MB / 301.7 MB, free: 248 kB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001305/0.003619, allocations: 8 kB / 301.7 MB, free: 240 kB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001353/0.003754, allocations: 47.5 kB / 301.7 MB, free: 192 kB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001576/0.003912, allocations: 95.14 kB / 301.8 MB, free: 96 kB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002814/0.004193, allocations: 87.86 kB / 301.9 MB, free: 8 kB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.1132/0.1174, allocations: 382.9 kB / 302.3 MB, free: 13.16 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002076/0.1176, allocations: 86.83 kB / 302.4 MB, free: 13.15 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002355/0.1179, allocations: 223.4 kB / 302.6 MB, free: 13.13 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001637/0.118, allocations: 123.5 kB / 302.7 MB, free: 13.12 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.785e-05/0.1181, allocations: 33.56 kB / 302.7 MB, free: 13.12 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.026e-05/0.1181, allocations: 34.22 kB / 302.8 MB, free: 13.12 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.247e-05/0.1182, allocations: 76.06 kB / 302.9 MB, free: 13.1 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.753e-05/0.1183, allocations: 116.6 kB / 303 MB, free: 13.09 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003602/0.1186, allocations: 388.8 kB / 303.4 MB, free: 13.06 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.1186, allocations: 1.906 kB / 303.4 MB, free: 13.06 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1186, allocations: 2.906 kB / 303.4 MB, free: 13.06 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.992e-06/0.1186, allocations: 0 / 303.4 MB, free: 13.06 MB / 282.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.0008213/0.1195, allocations: 0.5829 MB / 303.9 MB, free: 12.67 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.265e-05/0.1195, allocations: 9.031 kB / 303.9 MB, free: 12.67 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.631e-05/0.1196, allocations: 59.31 kB / 304 MB, free: 12.63 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.506e-05/0.1196, allocations: 39.47 kB / 304 MB, free: 12.61 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002987/0.1199, allocations: 217.4 kB / 304.3 MB, free: 12.46 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.671e-05/0.1199, allocations: 18.06 kB / 304.3 MB, free: 12.46 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.165e-05/0.12, allocations: 24.69 kB / 304.3 MB, free: 12.46 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004372/0.1204, allocations: 352.8 kB / 304.6 MB, free: 12.34 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.1204, allocations: 4.688 kB / 304.6 MB, free: 12.34 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.151e-05/0.1204, allocations: 9.938 kB / 304.7 MB, free: 12.34 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.736e-06/0.1204, allocations: 9.625 kB / 304.7 MB, free: 12.34 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000457/0.1209, allocations: 249.6 kB / 304.9 MB, free: 12.33 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001016/0.1219, allocations: 0.9762 MB / 305.9 MB, free: 11.67 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005118/0.1224, allocations: 204 kB / 306.1 MB, free: 11.61 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001679/0.1226, allocations: 85.23 kB / 306.2 MB, free: 11.58 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.38e-05/0.1226, allocations: 2.391 kB / 306.2 MB, free: 11.58 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000286/0.1229, allocations: 225.1 kB / 306.4 MB, free: 11.41 MB / 282.7 MB Notification: Performance of pre-optimization done (n=12): time 1.483e-06/0.1229, allocations: 0 / 306.4 MB, free: 11.41 MB / 282.7 MB Notification: Performance of matching and sorting (n=12): time 0.001175/0.1241, allocations: 437.1 kB / 306.8 MB, free: 11.29 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.494e-05/0.1241, allocations: 112.3 kB / 306.9 MB, free: 11.16 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002346/0.1244, allocations: 289.8 kB / 307.2 MB, free: 11 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.569e-05/0.1244, allocations: 31.3 kB / 307.2 MB, free: 10.96 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.854e-05/0.1245, allocations: 202.1 kB / 307.4 MB, free: 10.79 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.539e-05/0.1245, allocations: 46 kB / 307.5 MB, free: 10.76 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.911e-05/0.1246, allocations: 52.66 kB / 307.5 MB, free: 10.72 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.516e-05/0.1246, allocations: 336.7 kB / 307.9 MB, free: 10.4 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001956/0.1248, allocations: 119.5 kB / 308 MB, free: 10.34 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002338/0.125, allocations: 282.2 kB / 308.3 MB, free: 10.09 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003837/0.1254, allocations: 299.2 kB / 308.5 MB, free: 9.895 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.1254, allocations: 0.875 kB / 308.5 MB, free: 9.895 MB / 282.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006673/0.1261, allocations: 459.8 kB / 309 MB, free: 9.695 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.011e-05/0.1261, allocations: 35.61 kB / 309 MB, free: 9.664 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/0.1261, allocations: 2.844 kB / 309 MB, free: 9.664 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002315/0.1264, allocations: 76.06 kB / 309.1 MB, free: 9.637 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001268/0.1265, allocations: 45.27 kB / 309.2 MB, free: 9.637 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001406/0.1279, allocations: 1.607 MB / 310.8 MB, free: 8.246 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002403/0.1281, allocations: 53.05 kB / 310.8 MB, free: 8.227 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.49e-05/0.1282, allocations: 9.766 kB / 310.8 MB, free: 8.227 MB / 282.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.0001241/0.1283, allocations: 148.6 kB / 311 MB, free: 8.094 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.125e-05/0.1283, allocations: 27.97 kB / 311 MB, free: 8.078 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.367e-05/0.1284, allocations: 28.83 kB / 311 MB, free: 8.062 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.1284, allocations: 1.188 kB / 311 MB, free: 8.062 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.785e-06/0.1284, allocations: 0 / 311 MB, free: 8.062 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.1284, allocations: 2.766 kB / 311 MB, free: 8.062 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002157/0.1286, allocations: 246 kB / 311.3 MB, free: 7.859 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.1286, allocations: 0.8438 kB / 311.3 MB, free: 7.859 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.682e-05/0.1286, allocations: 22.7 kB / 311.3 MB, free: 7.855 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001836/0.1288, allocations: 68.81 kB / 311.4 MB, free: 7.832 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.181e-05/0.1288, allocations: 1.094 kB / 311.4 MB, free: 7.832 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00111/0.13, allocations: 1.591 MB / 312.9 MB, free: 6.461 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.13, allocations: 4.453 kB / 313 MB, free: 6.457 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005619/0.1305, allocations: 311.6 kB / 313.3 MB, free: 6.324 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.832e-05/0.1306, allocations: 40.72 kB / 313.3 MB, free: 6.301 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.241e-05/0.1306, allocations: 6.984 kB / 313.3 MB, free: 6.297 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001267/0.1307, allocations: 28.66 kB / 313.3 MB, free: 6.293 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.791e-05/0.1308, allocations: 26.47 kB / 313.4 MB, free: 6.285 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.24e-05/0.1308, allocations: 3.375 kB / 313.4 MB, free: 6.285 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000152/0.131, allocations: 199 kB / 313.6 MB, free: 6.172 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-08/0.131, allocations: 0 / 313.6 MB, free: 6.172 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002999/0.1313, allocations: 80.84 kB / 313.6 MB, free: 6.156 MB / 282.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.0006809/0.132, allocations: 0.8461 MB / 314.5 MB, free: 5.488 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006072/0.1326, allocations: 434.3 kB / 314.9 MB, free: 5.219 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.1326, allocations: 0 / 314.9 MB, free: 5.219 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002438/0.1328, allocations: 233.4 kB / 315.1 MB, free: 5.066 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002227/0.1331, allocations: 43.64 kB / 315.2 MB, free: 5.051 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002956/0.136, allocations: 3.118 MB / 318.3 MB, free: 2.965 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.577e-05/0.1361, allocations: 143.7 kB / 318.4 MB, free: 2.883 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 8.535e-05/0.1362, allocations: 28.03 kB / 318.5 MB, free: 2.879 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.059e-05/0.1363, allocations: 75.44 kB / 318.5 MB, free: 2.824 MB / 282.7 MB Notification: Performance of SimCode: time 8.91e-07/0.1363, allocations: 1.156 kB / 318.5 MB, free: 2.824 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02047/0.1567, allocations: 7.567 MB / 326.1 MB, free: 15.46 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.632/7.789, allocations: 9.875 kB / 326.1 MB, free: 15.46 MB / 298.7 MB " [Timeout remaining time 652] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/InvertingAmp/InvertingAmp.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.3422000259161]