Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.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.001283/0.001283, allocations: 124.1 kB / 17.79 MB, free: 5.25 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.001367/0.001367, allocations: 198.8 kB / 20.73 MB, free: 2.309 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.431/1.431, allocations: 225.6 MB / 249.1 MB, free: 3.594 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.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001529/0.001529, allocations: 59.89 kB / 365.7 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1081, allocations: 52.13 MB / 417.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.00434/0.1125, allocations: 2.939 MB / 420.8 MB, free: 9.621 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001355/0.1138, allocations: 0.7401 MB / 421.5 MB, free: 8.875 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001546/0.114, allocations: 11.94 kB / 421.5 MB, free: 8.863 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001741/0.1142, allocations: 55.5 kB / 421.6 MB, free: 8.809 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002164/0.1144, allocations: 99.17 kB / 421.7 MB, free: 8.711 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003/0.1147, allocations: 119.8 kB / 421.8 MB, free: 8.594 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004639/0.1151, allocations: 418.4 kB / 422.2 MB, free: 8.184 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001981/0.1153, allocations: 83.28 kB / 422.3 MB, free: 8.094 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002128/0.1156, allocations: 155.5 kB / 422.4 MB, free: 7.941 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002258/0.1158, allocations: 179.2 kB / 422.6 MB, free: 7.766 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.097e-05/0.1158, allocations: 44 kB / 422.6 MB, free: 7.723 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.782e-05/0.1159, allocations: 40 kB / 422.7 MB, free: 7.684 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.698e-05/0.116, allocations: 79.69 kB / 422.8 MB, free: 7.605 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001707/0.1161, allocations: 179.1 kB / 422.9 MB, free: 7.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005048/0.1166, allocations: 446.3 kB / 423.4 MB, free: 6.992 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.1167, allocations: 0 / 423.4 MB, free: 6.992 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.1167, allocations: 3.938 kB / 423.4 MB, free: 6.988 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.943e-06/0.1167, allocations: 0 / 423.4 MB, free: 6.988 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001355/0.118, allocations: 0.6884 MB / 424.1 MB, free: 6.246 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.1181, allocations: 8.031 kB / 424.1 MB, free: 6.238 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.107e-05/0.1181, allocations: 58.73 kB / 424.1 MB, free: 6.172 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.456e-05/0.1182, allocations: 32.75 kB / 424.2 MB, free: 6.141 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005297/0.1187, allocations: 311.7 kB / 424.5 MB, free: 5.797 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.242e-05/0.1188, allocations: 12.94 kB / 424.5 MB, free: 5.785 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.317e-05/0.1188, allocations: 24.38 kB / 424.5 MB, free: 5.762 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007506/0.1196, allocations: 331.8 kB / 424.8 MB, free: 5.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.1196, allocations: 0 / 424.8 MB, free: 5.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.144e-05/0.1196, allocations: 12 kB / 424.8 MB, free: 5.418 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.001e-05/0.1196, allocations: 8 kB / 424.8 MB, free: 5.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008643/0.1205, allocations: 286 kB / 425.1 MB, free: 5.129 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001948/0.1224, allocations: 1.147 MB / 426.3 MB, free: 3.906 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000889/0.1233, allocations: 246.5 kB / 426.5 MB, free: 3.656 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003457/0.1237, allocations: 96.8 kB / 426.6 MB, free: 3.559 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.71e-05/0.1237, allocations: 8.203 kB / 426.6 MB, free: 3.551 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005093/0.1242, allocations: 189.6 kB / 426.8 MB, free: 3.348 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.383e-06/0.1242, allocations: 0 / 426.8 MB, free: 3.348 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.002596/0.1268, allocations: 0.6668 MB / 427.5 MB, free: 2.652 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000151/0.1269, allocations: 110.8 kB / 427.6 MB, free: 2.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003527/0.1273, allocations: 278.7 kB / 427.8 MB, free: 2.238 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.411e-05/0.1273, allocations: 29.7 kB / 427.9 MB, free: 2.203 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001788/0.1275, allocations: 208 kB / 428.1 MB, free: 1.996 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.977e-05/0.1276, allocations: 39.69 kB / 428.1 MB, free: 1.957 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000101/0.1277, allocations: 49.89 kB / 428.2 MB, free: 1.898 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002697/0.1279, allocations: 342.8 kB / 428.5 MB, free: 1.555 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003652/0.1283, allocations: 100.4 kB / 428.6 MB, free: 1.457 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004594/0.1288, allocations: 205.6 kB / 428.8 MB, free: 1.215 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007819/0.1295, allocations: 311.7 kB / 429.1 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.1295, allocations: 0 / 429.1 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001305/0.1308, allocations: 473.7 kB / 429.6 MB, free: 400 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.99e-05/0.1309, allocations: 37.69 kB / 429.6 MB, free: 356 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.1309, allocations: 4 kB / 429.6 MB, free: 352 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004014/0.1313, allocations: 84.88 kB / 429.7 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002384/0.1315, allocations: 47.89 kB / 429.7 MB, free: 216 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003045/0.1346, allocations: 2.001 MB / 431.7 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000341/0.1349, allocations: 55.8 kB / 431.8 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.51e-05/0.135, allocations: 11.94 kB / 431.8 MB, free: 14 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001971/0.1351, allocations: 157.7 kB / 431.9 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.623e-05/0.1352, allocations: 23.86 kB / 432 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.833e-05/0.1353, allocations: 29.83 kB / 432 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.1353, allocations: 0 / 432 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.583e-06/0.1353, allocations: 0 / 432 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.1353, allocations: 0 / 432 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003716/0.1356, allocations: 325.4 kB / 432.3 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.1356, allocations: 48 / 432.3 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001452/0.1358, allocations: 23.97 kB / 432.3 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002954/0.1361, allocations: 80.8 kB / 432.4 MB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.438e-05/0.1361, allocations: 0 / 432.4 MB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002533/0.1386, allocations: 1.824 MB / 434.2 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1386, allocations: 4.062 kB / 434.2 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001119/0.1397, allocations: 365.5 kB / 434.6 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.946e-05/0.1398, allocations: 104.9 kB / 434.7 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.091e-05/0.1399, allocations: 0 / 434.7 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002591/0.1401, allocations: 39.95 kB / 434.7 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.585e-05/0.1402, allocations: 23.91 kB / 434.8 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.593e-05/0.1402, allocations: 7.938 kB / 434.8 MB, free: 10.77 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002342/0.1405, allocations: 202 kB / 435 MB, free: 10.57 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1405, allocations: 0 / 435 MB, free: 10.57 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004089/0.1409, allocations: 79.84 kB / 435.1 MB, free: 10.49 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 (9): * Single equations (assignments): 6 * 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,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001561/0.1424, allocations: 0.9019 MB / 436 MB, free: 9.555 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001041/0.1435, allocations: 429.3 kB / 436.4 MB, free: 9.113 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.1435, allocations: 4.188 kB / 436.4 MB, free: 9.109 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004858/0.144, allocations: 230.5 kB / 436.6 MB, free: 8.871 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003389/0.1443, allocations: 61.91 kB / 436.7 MB, free: 8.809 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005651/0.15, allocations: 3.101 MB / 439.8 MB, free: 5.547 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000377/0.1503, allocations: 0.7558 MB / 440.5 MB, free: 4.766 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000119/0.1505, allocations: 34.2 kB / 440.6 MB, free: 4.734 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001329/0.1506, allocations: 83.41 kB / 440.6 MB, free: 4.652 MB / 366.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1506, allocations: 0 / 440.6 MB, free: 4.652 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.222/0.3726, allocations: 6.902 MB / 447.5 MB, free: 30.69 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.75/12.13, allocations: 3.234 kB / 447.5 MB, free: 30.69 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingAmplifier/InvertingAmplifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable gain.opAmp.out.v in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.csv. Warning: Get data of variable gain.opAmp.out.v from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.csv failed! Error: Could not read variable gain.opAmp.out.i in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.csv. Warning: Get data of variable gain.opAmp.out.i from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.627699912991375]