Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.SingularTransformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.SingularTransformer,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_SingularTransformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.SingularTransformer,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_SingularTransformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00168/0.00168, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001957/0.001957, allocations: 214.4 kB / 18.59 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.503/1.503, allocations: 227.4 MB / 246.8 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2227/0.2227, allocations: 46.12 MB / 344.2 MB, free: 11.54 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002187/0.002187, allocations: 73.66 kB / 417.8 MB, free: 19.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.1189, allocations: 62.45 MB / 480.2 MB, free: 5.129 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.SingularTransformer): time 0.00378/0.1227, allocations: 2.582 MB / 482.8 MB, free: 2.527 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00119/0.1239, allocations: 0.6661 MB / 483.4 MB, free: 1.855 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001116/0.124, allocations: 4 kB / 483.5 MB, free: 1.852 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001467/0.1242, allocations: 39.58 kB / 483.5 MB, free: 1.812 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001463/0.1243, allocations: 75.33 kB / 483.6 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002791/0.1246, allocations: 71.84 kB / 483.6 MB, free: 1.668 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003251/0.125, allocations: 294.8 kB / 483.9 MB, free: 1.379 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001818/0.1252, allocations: 84.58 kB / 484 MB, free: 1.293 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002034/0.1254, allocations: 119.5 kB / 484.1 MB, free: 1.176 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001569/0.1255, allocations: 123.5 kB / 484.2 MB, free: 1.055 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.328e-05/0.1256, allocations: 24 kB / 484.3 MB, free: 1.031 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.115e-05/0.1257, allocations: 28 kB / 484.3 MB, free: 1.004 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.049e-05/0.1257, allocations: 47.84 kB / 484.3 MB, free: 0.957 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001251/0.1259, allocations: 127.4 kB / 484.5 MB, free: 0.832 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003086/0.1262, allocations: 287.2 kB / 484.7 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1262, allocations: 0 / 484.7 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1262, allocations: 0 / 484.7 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.743e-06/0.1262, allocations: 0 / 484.7 MB, free: 0.5508 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: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.0008266/0.1271, allocations: 0.5419 MB / 485.3 MB, free: 15.96 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.647e-05/0.1271, allocations: 8.031 kB / 485.3 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.249e-05/0.1272, allocations: 58.67 kB / 485.4 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001562/0.1273, allocations: 36.64 kB / 485.4 MB, free: 15.85 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002902/0.1276, allocations: 247.8 kB / 485.6 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.774e-05/0.1277, allocations: 16.81 kB / 485.6 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.721e-05/0.1277, allocations: 20.38 kB / 485.7 MB, free: 15.53 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003573/0.1281, allocations: 195.4 kB / 485.9 MB, free: 15.33 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.807e-06/0.1281, allocations: 0 / 485.9 MB, free: 15.33 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.366e-05/0.1281, allocations: 12 kB / 485.9 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.087e-06/0.1281, allocations: 7.984 kB / 485.9 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002943/0.1284, allocations: 145.6 kB / 486 MB, free: 15.17 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001344/0.1298, allocations: 0.8024 MB / 486.8 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002/0.13, allocations: 98.42 kB / 486.9 MB, free: 14.19 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001049/0.1301, allocations: 52.83 kB / 487 MB, free: 14.14 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.856e-05/0.1301, allocations: 4 kB / 487 MB, free: 14.13 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.164e-05/0.1302, allocations: 34.56 kB / 487 MB, free: 14.09 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.212e-06/0.1302, allocations: 0 / 487 MB, free: 14.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=16): time 0.001927/0.1321, allocations: 0.7214 MB / 487.7 MB, free: 13.31 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.598e-05/0.1322, allocations: 59.34 kB / 487.8 MB, free: 13.24 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000231/0.1324, allocations: 211 kB / 488 MB, free: 13.02 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.469e-05/0.1325, allocations: 29.7 kB / 488 MB, free: 12.99 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001339/0.1326, allocations: 167.8 kB / 488.2 MB, free: 12.82 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.117e-05/0.1327, allocations: 51.2 kB / 488.2 MB, free: 12.77 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.982e-05/0.1327, allocations: 49.61 kB / 488.3 MB, free: 12.71 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002101/0.133, allocations: 330.8 kB / 488.6 MB, free: 12.38 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001471/0.1331, allocations: 59.97 kB / 488.7 MB, free: 12.32 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001871/0.1333, allocations: 109.1 kB / 488.8 MB, free: 12.2 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003156/0.1336, allocations: 175.2 kB / 488.9 MB, free: 12.01 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-06/0.1337, allocations: 4 kB / 488.9 MB, free: 12.01 MB / 366.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0005452/0.1342, allocations: 281.7 kB / 489.2 MB, free: 11.72 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/0.1342, allocations: 4 kB / 489.2 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/0.1342, allocations: 8 kB / 489.2 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002549/0.1345, allocations: 69.67 kB / 489.3 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001717/0.1347, allocations: 31.92 kB / 489.3 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00265/0.1374, allocations: 3.023 MB / 492.4 MB, free: 8.305 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001572/0.1375, allocations: 8 kB / 492.4 MB, free: 8.297 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.619e-05/0.1376, allocations: 11.94 kB / 492.4 MB, free: 8.285 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (18): * Single equations (assignments): 16 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001783/0.1377, allocations: 142.1 kB / 492.5 MB, free: 8.137 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.154e-05/0.1378, allocations: 15.81 kB / 492.5 MB, free: 8.121 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.594e-05/0.1379, allocations: 25.94 kB / 492.6 MB, free: 8.098 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.1379, allocations: 4 kB / 492.6 MB, free: 8.094 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.226e-06/0.1379, allocations: 0 / 492.6 MB, free: 8.094 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.1379, allocations: 3.984 kB / 492.6 MB, free: 8.09 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000362/0.1383, allocations: 289.5 kB / 492.8 MB, free: 7.758 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.1383, allocations: 0 / 492.8 MB, free: 7.758 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.301e-05/0.1384, allocations: 19.97 kB / 492.9 MB, free: 7.738 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002087/0.1386, allocations: 73.61 kB / 492.9 MB, free: 7.66 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.677e-05/0.1386, allocations: 7.984 kB / 492.9 MB, free: 7.652 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002499/0.1411, allocations: 3.005 MB / 495.9 MB, free: 4.367 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.1411, allocations: 0 / 495.9 MB, free: 4.367 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006557/0.1418, allocations: 407.5 kB / 496.3 MB, free: 3.949 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.62e-05/0.1419, allocations: 92.94 kB / 496.4 MB, free: 3.84 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.96e-05/0.1419, allocations: 4 kB / 496.4 MB, free: 3.836 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001787/0.1421, allocations: 19.92 kB / 496.5 MB, free: 3.816 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.359e-05/0.1422, allocations: 20.05 kB / 496.5 MB, free: 3.797 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.235e-05/0.1422, allocations: 3.984 kB / 496.5 MB, free: 3.793 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001534/0.1423, allocations: 156.4 kB / 496.6 MB, free: 3.641 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1424, allocations: 0 / 496.6 MB, free: 3.641 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003745/0.1427, allocations: 64 kB / 496.7 MB, free: 3.578 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (basicTransformer.i1) * 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 (9): * Single equations (assignments): 7 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009449/0.1437, allocations: 0.9299 MB / 497.6 MB, free: 2.617 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007154/0.1444, allocations: 413.2 kB / 498 MB, free: 2.188 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.1444, allocations: 0 / 498 MB, free: 2.188 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004792/0.1449, allocations: 329.2 kB / 498.4 MB, free: 1.84 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004041/0.1453, allocations: 31.84 kB / 498.4 MB, free: 1.809 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003448/0.1488, allocations: 2.483 MB / 0.4891 GB, free: 15.22 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003939/0.1492, allocations: 0.744 MB / 0.4899 GB, free: 14.45 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.304e-05/0.1493, allocations: 17.95 kB / 0.4899 GB, free: 14.43 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001021/0.1494, allocations: 71.41 kB / 0.4899 GB, free: 14.36 MB / 382.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1494, allocations: 0 / 0.4899 GB, free: 14.36 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03765/0.1871, allocations: 4.913 MB / 0.4947 GB, free: 9.562 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.924/10.11, allocations: 1.625 kB / 0.4947 GB, free: 9.562 MB / 382.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.SingularTransformer.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.SingularTransformer.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.SingularTransformer.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.SingularTransformer.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.SingularTransformer_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_SingularTransformer.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.SingularTransformer.pipe 2>&1)