Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001799/0.001799, allocations: 121.4 kB / 17.79 MB, free: 5.121 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002043/0.002043, allocations: 190.9 kB / 20.73 MB, free: 2.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.378/1.378, allocations: 225.6 MB / 249.1 MB, free: 3.633 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001412, allocations: 55.91 kB / 365.7 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1034, allocations: 52.14 MB / 417.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.003927/0.1073, allocations: 2.8 MB / 420.6 MB, free: 9.793 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00103/0.1083, allocations: 0.6427 MB / 421.2 MB, free: 9.145 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001144/0.1085, allocations: 8 kB / 421.3 MB, free: 9.137 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001374/0.1086, allocations: 51.52 kB / 421.3 MB, free: 9.086 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001757/0.1088, allocations: 91.19 kB / 421.4 MB, free: 8.996 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002306/0.109, allocations: 79.89 kB / 421.5 MB, free: 8.918 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004028/0.1094, allocations: 378.5 kB / 421.8 MB, free: 8.547 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001786/0.1096, allocations: 86.95 kB / 421.9 MB, free: 8.457 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001693/0.1097, allocations: 143.5 kB / 422.1 MB, free: 8.316 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001927/0.1099, allocations: 171.3 kB / 422.2 MB, free: 8.148 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.638e-05/0.11, allocations: 32 kB / 422.3 MB, free: 8.117 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.317e-05/0.11, allocations: 39.94 kB / 422.3 MB, free: 8.078 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.873e-05/0.1101, allocations: 75.75 kB / 422.4 MB, free: 8.004 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001545/0.1103, allocations: 159.2 kB / 422.5 MB, free: 7.848 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003913/0.1107, allocations: 374.5 kB / 422.9 MB, free: 7.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.1107, allocations: 4 kB / 422.9 MB, free: 7.477 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.236e-06/0.1107, allocations: 3.984 kB / 422.9 MB, free: 7.473 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.211e-06/0.1107, allocations: 0 / 422.9 MB, free: 7.473 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.001273/0.112, allocations: 0.6611 MB / 423.6 MB, free: 6.758 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.696e-05/0.112, allocations: 8.031 kB / 423.6 MB, free: 6.75 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.08e-05/0.1121, allocations: 62.72 kB / 423.6 MB, free: 6.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.086e-05/0.1121, allocations: 36.75 kB / 423.7 MB, free: 6.645 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003865/0.1125, allocations: 276.8 kB / 423.9 MB, free: 6.332 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.158e-05/0.1125, allocations: 20.94 kB / 424 MB, free: 6.312 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.084e-05/0.1126, allocations: 24.38 kB / 424 MB, free: 6.289 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006333/0.1132, allocations: 307.4 kB / 424.3 MB, free: 5.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.321e-05/0.1132, allocations: 8 kB / 424.3 MB, free: 5.973 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.542e-05/0.1133, allocations: 8 kB / 424.3 MB, free: 5.965 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.208e-05/0.1133, allocations: 11.98 kB / 424.3 MB, free: 5.953 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007406/0.114, allocations: 245.6 kB / 424.6 MB, free: 5.711 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00179/0.1158, allocations: 1.093 MB / 425.6 MB, free: 4.527 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007155/0.1165, allocations: 206.6 kB / 425.8 MB, free: 4.316 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000275/0.1168, allocations: 88.78 kB / 425.9 MB, free: 4.227 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.532e-05/0.1168, allocations: 0 / 425.9 MB, free: 4.227 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004183/0.1172, allocations: 161.9 kB / 426.1 MB, free: 4.047 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.172e-06/0.1172, allocations: 4 kB / 426.1 MB, free: 4.043 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.001938/0.1192, allocations: 0.5145 MB / 426.6 MB, free: 3.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.084e-05/0.1192, allocations: 106.8 kB / 426.7 MB, free: 3.371 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003093/0.1196, allocations: 278.7 kB / 427 MB, free: 3.094 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.133e-05/0.1196, allocations: 33.7 kB / 427 MB, free: 3.055 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001506/0.1197, allocations: 211.9 kB / 427.2 MB, free: 2.844 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.044e-05/0.1198, allocations: 35.69 kB / 427.3 MB, free: 2.809 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.233e-05/0.1199, allocations: 53.89 kB / 427.3 MB, free: 2.746 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.12, allocations: 342.8 kB / 427.6 MB, free: 2.402 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003141/0.1203, allocations: 96.16 kB / 427.7 MB, free: 2.309 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003888/0.1207, allocations: 198.8 kB / 427.9 MB, free: 2.066 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000647/0.1214, allocations: 303.6 kB / 428.2 MB, free: 1.723 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.1214, allocations: 8 kB / 428.2 MB, free: 1.715 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001132/0.1225, allocations: 423.7 kB / 428.7 MB, free: 1.285 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.504e-05/0.1226, allocations: 37.7 kB / 428.7 MB, free: 1.242 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/0.1226, allocations: 7.938 kB / 428.7 MB, free: 1.234 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003259/0.1229, allocations: 72.89 kB / 428.8 MB, free: 1.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000215/0.1231, allocations: 43.91 kB / 428.8 MB, free: 1.117 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002647/0.1257, allocations: 1.718 MB / 430.5 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003477/0.1261, allocations: 51.8 kB / 430.6 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.69e-05/0.1261, allocations: 11.94 kB / 430.6 MB, free: 15.2 MB / 366.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.0002123/0.1263, allocations: 158.4 kB / 430.7 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.575e-05/0.1264, allocations: 23.86 kB / 430.8 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.994e-05/0.1264, allocations: 33.64 kB / 430.8 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.1264, allocations: 192 / 430.8 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.1264, allocations: 4 kB / 430.8 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.1265, allocations: 0 / 430.8 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000356/0.1268, allocations: 305.4 kB / 431.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.1268, allocations: 0 / 431.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001396/0.127, allocations: 19.97 kB / 431.1 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002548/0.1272, allocations: 64.81 kB / 431.2 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.263e-05/0.1272, allocations: 11.98 kB / 431.2 MB, free: 14.53 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002429/0.1297, allocations: 1.696 MB / 432.9 MB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1297, allocations: 0 / 432.9 MB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009726/0.1306, allocations: 313.9 kB / 433.2 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001444/0.1308, allocations: 112.9 kB / 433.3 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.764e-05/0.1308, allocations: 8.125 kB / 433.3 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000251/0.1311, allocations: 35.95 kB / 433.4 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.264e-05/0.1312, allocations: 19.98 kB / 433.4 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.61e-05/0.1312, allocations: 11.92 kB / 433.4 MB, free: 12.16 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002227/0.1314, allocations: 202 kB / 433.6 MB, free: 11.96 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1314, allocations: 0 / 433.6 MB, free: 11.96 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003586/0.1318, allocations: 79.89 kB / 433.7 MB, free: 11.88 MB / 366.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.001341/0.1331, allocations: 0.8473 MB / 434.5 MB, free: 11 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001066/0.1342, allocations: 405.9 kB / 434.9 MB, free: 10.58 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1342, allocations: 0 / 434.9 MB, free: 10.58 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000474/0.1346, allocations: 223.2 kB / 435.1 MB, free: 10.35 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003552/0.135, allocations: 51.23 kB / 435.2 MB, free: 10.3 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005104/0.1401, allocations: 2.999 MB / 438.2 MB, free: 7.121 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003789/0.1405, allocations: 0.7518 MB / 438.9 MB, free: 6.344 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001046/0.1406, allocations: 26.28 kB / 439 MB, free: 6.32 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001187/0.1407, allocations: 71.42 kB / 439 MB, free: 6.254 MB / 366.1 MB Notification: Performance of SimCode: time 7.81e-07/0.1407, allocations: 3.938 kB / 439 MB, free: 6.25 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2185/0.3592, allocations: 6.828 MB / 445.9 MB, free: 30.54 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.61/11.97, allocations: 5.188 kB / 445.9 MB, free: 30.54 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/InvertingAmp/InvertingAmp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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.448174345772713]