Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.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.001475/0.001475, allocations: 116 kB / 17.78 MB, free: 5.289 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.001498/0.001498, allocations: 190.9 kB / 20.73 MB, free: 2.352 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.46/1.46, 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.CompareTransformers,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001584/0.001584, allocations: 47.92 kB / 365.7 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1102, allocations: 52.15 MB / 417.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.005811/0.116, allocations: 4.104 MB / 421.9 MB, free: 8.449 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002004/0.118, allocations: 0.8763 MB / 422.8 MB, free: 7.566 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000465/0.1185, allocations: 8 kB / 422.8 MB, free: 7.559 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003867/0.1189, allocations: 95.06 kB / 422.9 MB, free: 7.465 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006216/0.1195, allocations: 186.4 kB / 423.1 MB, free: 7.281 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004673/0.12, allocations: 143.7 kB / 423.2 MB, free: 7.141 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009231/0.1209, allocations: 0.6732 MB / 423.9 MB, free: 6.465 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003272/0.1212, allocations: 143.1 kB / 424 MB, free: 6.312 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004387/0.1217, allocations: 263 kB / 424.3 MB, free: 6.055 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004262/0.1221, allocations: 290.6 kB / 424.6 MB, free: 5.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001326/0.1222, allocations: 56 kB / 424.6 MB, free: 5.715 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001382/0.1224, allocations: 56 kB / 424.7 MB, free: 5.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000151/0.1225, allocations: 131.5 kB / 424.8 MB, free: 5.531 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003923/0.1229, allocations: 306.5 kB / 425.1 MB, free: 5.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007958/0.1237, allocations: 0.6418 MB / 425.8 MB, free: 4.586 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.1237, allocations: 0 / 425.8 MB, free: 4.586 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1237, allocations: 3.938 kB / 425.8 MB, free: 4.582 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.303e-05/0.1237, allocations: 0 / 425.8 MB, free: 4.582 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001702/0.1254, allocations: 0.8723 MB / 426.6 MB, free: 3.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.1255, allocations: 11.97 kB / 426.6 MB, free: 3.648 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001844/0.1257, allocations: 119.8 kB / 426.8 MB, free: 3.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001324/0.1258, allocations: 68.52 kB / 426.8 MB, free: 3.453 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006945/0.1265, allocations: 375.9 kB / 427.2 MB, free: 3.047 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.812e-05/0.1265, allocations: 37.69 kB / 427.2 MB, free: 3.012 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001538/0.1267, allocations: 52.38 kB / 427.3 MB, free: 2.961 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009637/0.1276, allocations: 0.4918 MB / 427.8 MB, free: 2.453 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.571e-05/0.1277, allocations: 0 / 427.8 MB, free: 2.453 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.17e-05/0.1277, allocations: 31.94 kB / 427.8 MB, free: 2.422 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.592e-05/0.1277, allocations: 12 kB / 427.8 MB, free: 2.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000709/0.1284, allocations: 344.7 kB / 428.2 MB, free: 2.078 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003029/0.1315, allocations: 1.714 MB / 429.9 MB, free: 272 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005053/0.132, allocations: 257.1 kB / 430.1 MB, free: 15.99 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002472/0.1322, allocations: 129.6 kB / 430.2 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.457e-05/0.1322, allocations: 4 kB / 430.2 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.668e-05/0.1323, allocations: 46.44 kB / 430.3 MB, free: 15.8 MB / 366.1 MB Notification: Performance of pre-optimization done (n=31): time 1.803e-06/0.1323, allocations: 0 / 430.3 MB, free: 15.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=32): time 0.002063/0.1344, allocations: 0.9729 MB / 431.3 MB, free: 14.76 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.746e-05/0.1344, allocations: 85.11 kB / 431.3 MB, free: 14.66 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004569/0.1349, allocations: 389.5 kB / 431.7 MB, free: 14.27 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.272e-05/0.1349, allocations: 29.7 kB / 431.8 MB, free: 14.23 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002196/0.1351, allocations: 304.1 kB / 432.1 MB, free: 13.93 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.524e-05/0.1352, allocations: 115 kB / 432.2 MB, free: 13.81 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001217/0.1353, allocations: 70.09 kB / 432.2 MB, free: 13.74 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.1355, allocations: 350.8 kB / 432.6 MB, free: 13.39 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002265/0.1357, allocations: 108.8 kB / 432.7 MB, free: 13.28 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002911/0.136, allocations: 194.5 kB / 432.9 MB, free: 13.05 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005119/0.1365, allocations: 304.2 kB / 433.2 MB, free: 12.72 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.1365, allocations: 0 / 433.2 MB, free: 12.72 MB / 366.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0008867/0.1374, allocations: 459 kB / 433.6 MB, free: 12.26 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.1374, allocations: 10.03 kB / 433.6 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.1375, allocations: 0 / 433.6 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003582/0.1378, allocations: 85.75 kB / 433.7 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003501/0.1382, allocations: 79.84 kB / 433.8 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002978/0.1411, allocations: 3.123 MB / 436.9 MB, free: 8.691 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002954/0.1414, allocations: 23.94 kB / 436.9 MB, free: 8.668 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.236e-05/0.1415, allocations: 16 kB / 437 MB, free: 8.652 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002391/0.1417, allocations: 166.4 kB / 437.1 MB, free: 8.48 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001/0.1418, allocations: 43.7 kB / 437.2 MB, free: 8.438 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.14e-05/0.1419, allocations: 47.47 kB / 437.2 MB, free: 8.383 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.448e-06/0.1419, allocations: 7.984 kB / 437.2 MB, free: 8.375 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.1419, allocations: 0 / 437.2 MB, free: 8.375 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.1419, allocations: 0 / 437.2 MB, free: 8.375 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001614/0.1435, allocations: 0.9481 MB / 438.2 MB, free: 7.359 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.135e-06/0.1435, allocations: 0 / 438.2 MB, free: 7.359 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002009/0.1437, allocations: 47.97 kB / 438.2 MB, free: 7.312 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002818/0.144, allocations: 81.62 kB / 438.3 MB, free: 7.227 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.369e-05/0.144, allocations: 4 kB / 438.3 MB, free: 7.223 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002893/0.1469, allocations: 3.123 MB / 441.4 MB, free: 3.82 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/0.1469, allocations: 4.031 kB / 441.4 MB, free: 3.816 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001053/0.148, allocations: 0.622 MB / 442 MB, free: 3.172 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001498/0.1481, allocations: 116.8 kB / 442.2 MB, free: 3.039 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.547e-05/0.1482, allocations: 8 kB / 442.2 MB, free: 3.031 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003564/0.1486, allocations: 32.16 kB / 442.2 MB, free: 3 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.705e-05/0.1486, allocations: 23.97 kB / 442.2 MB, free: 2.977 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.608e-05/0.1487, allocations: 16 kB / 442.2 MB, free: 2.961 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00033/0.149, allocations: 271.2 kB / 442.5 MB, free: 2.699 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.149, allocations: 0 / 442.5 MB, free: 2.699 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006525/0.1496, allocations: 124 kB / 442.6 MB, free: 2.578 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (inductor22.i,basicTransformer.i1,basicTransformer.i2) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001392/0.151, allocations: 1.17 MB / 443.8 MB, free: 1.371 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009931/0.152, allocations: 0.4976 MB / 444.3 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.152, allocations: 4.062 kB / 444.3 MB, free: 0.8438 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006623/0.1527, allocations: 375.5 kB / 444.7 MB, free: 464 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005431/0.1532, allocations: 65.69 kB / 444.7 MB, free: 400 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1968/0.3501, allocations: 4.202 MB / 448.9 MB, free: 28.11 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002684/0.3503, allocations: 0.8423 MB / 449.8 MB, free: 27.41 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001774/0.3505, allocations: 43.69 kB / 449.8 MB, free: 27.41 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001854/0.3507, allocations: 171.2 kB / 450 MB, free: 27.4 MB / 366.1 MB Notification: Performance of SimCode: time 1.042e-06/0.3507, allocations: 2.938 kB / 450 MB, free: 27.4 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05531/0.406, allocations: 9.048 MB / 459 MB, free: 26.41 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.47/10.88, allocations: 8.344 kB / 459 MB, free: 26.4 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers_res.csv --start-time 0 --stop-time 50 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CompareTransformers.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CompareTransformers/CompareTransformers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable basicTransformer.i1 in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers_res.csv. Warning: Get data of variable basicTransformer.i1 from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers_res.csv failed! Error: Could not read variable basicTransformer.i2 in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers_res.csv. Warning: Get data of variable basicTransformer.i2 from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers_res.csv failed! Error: Could not read variable inductor22.i in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers_res.csv. Warning: Get data of variable inductor22.i from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.98964626295492]