Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.Magnetic.TestTransformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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 Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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(HanserModelica.Magnetic.TestTransformer,fileNamePrefix="HanserModelica_HanserModelica_Magnetic_TestTransformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Magnetic.TestTransformer,fileNamePrefix="HanserModelica_HanserModelica_Magnetic_TestTransformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001164/0.001164, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.351/1.351, allocations: 222.9 MB / 238.9 MB, free: 4.754 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001305/0.001305, allocations: 184.5 kB / 289.1 MB, free: 2.504 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03328/0.03328, allocations: 8.795 MB / 348.1 MB, free: 4.895 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001417/0.001417, allocations: 75.84 kB / 410.5 MB, free: 42.37 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09777/0.0992, allocations: 51.57 MB / 462.1 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Magnetic.TestTransformer): time 0.005303/0.1045, allocations: 3.837 MB / 465.9 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001813/0.1064, allocations: 0.9114 MB / 466.8 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002638/0.1067, allocations: 11.94 kB / 466.8 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002437/0.1069, allocations: 59.53 kB / 466.9 MB, free: 9.949 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004526/0.1074, allocations: 130.9 kB / 467 MB, free: 9.82 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003385/0.1078, allocations: 151.9 kB / 467.2 MB, free: 9.672 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006466/0.1084, allocations: 0.6033 MB / 467.8 MB, free: 9.066 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004206/0.1089, allocations: 243.8 kB / 468 MB, free: 8.824 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002628/0.1091, allocations: 223.1 kB / 468.2 MB, free: 8.605 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002729/0.1094, allocations: 258.7 kB / 468.5 MB, free: 8.352 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.497e-05/0.1095, allocations: 40 kB / 468.5 MB, free: 8.312 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.826e-05/0.1096, allocations: 40 kB / 468.6 MB, free: 8.273 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.708e-05/0.1097, allocations: 103.6 kB / 468.7 MB, free: 8.172 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002331/0.1099, allocations: 274.6 kB / 468.9 MB, free: 7.902 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006228/0.1106, allocations: 0.6932 MB / 469.6 MB, free: 7.207 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.132e-06/0.1106, allocations: 0 / 469.6 MB, free: 7.207 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1106, allocations: 0 / 469.6 MB, free: 7.207 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.177e-06/0.1106, allocations: 4 kB / 469.6 MB, free: 7.203 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001486/0.1121, allocations: 0.8266 MB / 470.5 MB, free: 6.328 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.806e-05/0.1121, allocations: 12.03 kB / 470.5 MB, free: 6.316 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001019/0.1123, allocations: 94.7 kB / 470.6 MB, free: 6.215 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.687e-05/0.1124, allocations: 56.28 kB / 470.6 MB, free: 6.16 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004849/0.1128, allocations: 367.5 kB / 471 MB, free: 5.766 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.08e-05/0.1129, allocations: 41.69 kB / 471 MB, free: 5.723 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.904e-05/0.113, allocations: 48.38 kB / 471.1 MB, free: 5.676 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009437/0.1139, allocations: 0.5225 MB / 471.6 MB, free: 5.141 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.703e-05/0.114, allocations: 4 kB / 471.6 MB, free: 5.137 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.807e-05/0.114, allocations: 23.94 kB / 471.6 MB, free: 5.113 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.351e-05/0.114, allocations: 12 kB / 471.6 MB, free: 5.102 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008768/0.1149, allocations: 383.8 kB / 472 MB, free: 4.727 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002879/0.1178, allocations: 1.906 MB / 473.9 MB, free: 2.707 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007127/0.1185, allocations: 311.4 kB / 474.2 MB, free: 2.395 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004978/0.119, allocations: 247.4 kB / 474.4 MB, free: 2.152 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.91e-05/0.1191, allocations: 4.281 kB / 474.5 MB, free: 2.148 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.859e-05/0.1191, allocations: 38.84 kB / 474.5 MB, free: 2.102 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 1.613e-06/0.1191, allocations: 0 / 474.5 MB, free: 2.102 MB / 302.1 MB Notification: Performance of matching and sorting (n=47): time 0.004488/0.1236, allocations: 1.714 MB / 476.2 MB, free: 316 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.309e-05/0.1237, allocations: 63.84 kB / 476.3 MB, free: 240 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003869/0.1241, allocations: 295.3 kB / 476.6 MB, free: 15.94 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.233e-05/0.1241, allocations: 37.64 kB / 476.6 MB, free: 15.89 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001606/0.1243, allocations: 264.3 kB / 476.8 MB, free: 15.63 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001181/0.1244, allocations: 161.5 kB / 477 MB, free: 15.47 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001314/0.1245, allocations: 86.16 kB / 477.1 MB, free: 15.38 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001589/0.1247, allocations: 350.8 kB / 477.4 MB, free: 15.03 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000344/0.1251, allocations: 153 kB / 477.6 MB, free: 14.88 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003848/0.1254, allocations: 238.6 kB / 477.8 MB, free: 14.62 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007352/0.1262, allocations: 421.1 kB / 478.2 MB, free: 14.18 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-06/0.1262, allocations: 0 / 478.2 MB, free: 14.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001081/0.1273, allocations: 0.5518 MB / 478.8 MB, free: 13.61 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.146e-05/0.1273, allocations: 8 kB / 478.8 MB, free: 13.6 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.1273, allocations: 0 / 478.8 MB, free: 13.6 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002871/0.1276, allocations: 101.8 kB / 478.9 MB, free: 13.5 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004647/0.1281, allocations: 107.8 kB / 479 MB, free: 13.39 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002868/0.131, allocations: 3.237 MB / 482.2 MB, free: 9.879 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002862/0.1313, allocations: 20.02 kB / 482.2 MB, free: 9.859 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.519e-05/0.1313, allocations: 20 kB / 482.3 MB, free: 9.84 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 1 (switch.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 49 * 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%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002442/0.1316, allocations: 191.1 kB / 482.5 MB, free: 9.645 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.772e-05/0.1317, allocations: 43.47 kB / 482.5 MB, free: 9.602 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.348e-05/0.1318, allocations: 51.73 kB / 482.5 MB, free: 9.551 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.838e-06/0.1318, allocations: 4 kB / 482.6 MB, free: 9.547 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.1318, allocations: 0 / 482.6 MB, free: 9.547 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.1318, allocations: 0 / 482.6 MB, free: 9.547 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001698/0.1335, allocations: 1.125 MB / 483.7 MB, free: 8.359 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.614e-06/0.1335, allocations: 0 / 483.7 MB, free: 8.359 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003863/0.1339, allocations: 87.88 kB / 483.8 MB, free: 8.273 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002359/0.1341, allocations: 101.6 kB / 483.9 MB, free: 8.168 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.99e-05/0.1342, allocations: 8 kB / 483.9 MB, free: 8.16 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002665/0.1369, allocations: 3.235 MB / 487.1 MB, free: 4.652 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.1369, allocations: 4.25 kB / 487.1 MB, free: 4.648 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001459/0.1383, allocations: 0.7723 MB / 487.9 MB, free: 3.852 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001852/0.1385, allocations: 144.7 kB / 488 MB, free: 3.691 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.443e-05/0.1386, allocations: 15.94 kB / 488 MB, free: 3.676 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003005/0.1389, allocations: 28.05 kB / 488.1 MB, free: 3.648 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.865e-05/0.139, allocations: 31.95 kB / 488.1 MB, free: 3.617 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.954e-05/0.1391, allocations: 15.98 kB / 488.1 MB, free: 3.602 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002271/0.1393, allocations: 206 kB / 488.3 MB, free: 3.402 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1393, allocations: 0 / 488.3 MB, free: 3.402 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006705/0.14, allocations: 120 kB / 488.4 MB, free: 3.285 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (transformer.converter1.i,transformer.eddyCurrent.Phi) * Number of discrete variables: 1 (switch.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 35 * 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%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001716/0.1417, allocations: 1.333 MB / 489.8 MB, free: 1.914 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001246/0.143, allocations: 0.6665 MB / 490.4 MB, free: 1.219 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.143, allocations: 0 / 490.4 MB, free: 1.219 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007551/0.1437, allocations: 493.7 kB / 490.9 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006097/0.1444, allocations: 54.61 kB / 491 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006544/0.1509, allocations: 4.275 MB / 495.2 MB, free: 12.23 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004297/0.1514, allocations: 0.8434 MB / 496.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000215/0.1516, allocations: 43.25 kB / 496.1 MB, free: 11.32 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002411/0.1518, allocations: 167.4 kB / 496.3 MB, free: 11.16 MB / 334.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1519, allocations: 0 / 496.3 MB, free: 11.16 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02251/0.1744, allocations: 8.313 MB / 0.4928 GB, free: 2.984 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000255/0.1747, allocations: 207.7 kB / 0.493 GB, free: 2.73 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.804/1.978, allocations: 4.062 kB / 0.493 GB, free: 2.727 MB / 334.1 MB (rm -f HanserModelica_HanserModelica.Magnetic.TestTransformer.pipe ; mkfifo HanserModelica_HanserModelica.Magnetic.TestTransformer.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Magnetic.TestTransformer.pipe >> ../files/HanserModelica_HanserModelica.Magnetic.TestTransformer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Magnetic_TestTransformer_fmu --startTime=0 --stopTime=0.08 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Magnetic_TestTransformer.fmu > HanserModelica_HanserModelica.Magnetic.TestTransformer.pipe 2>&1)