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.001268/0.001268, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.29/1.29, allocations: 222.9 MB / 239 MB, free: 4.656 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.001238/0.001238, allocations: 192.5 kB / 289.3 MB, free: 2.406 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0347/0.0347, allocations: 8.8 MB / 348.2 MB, free: 4.859 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001569/0.001569, allocations: 74.89 kB / 410.7 MB, free: 42.28 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07294/0.07453, allocations: 51.57 MB / 462.3 MB, free: 14.69 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Magnetic.TestTransformer): time 0.004799/0.07936, allocations: 3.843 MB / 466.1 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001541/0.08092, allocations: 0.9114 MB / 467 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003029/0.08125, allocations: 12 kB / 467 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002217/0.08148, allocations: 59.53 kB / 467.1 MB, free: 9.832 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003856/0.08188, allocations: 138.9 kB / 467.2 MB, free: 9.695 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003185/0.08221, allocations: 139.9 kB / 467.4 MB, free: 9.559 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005392/0.08276, allocations: 0.6424 MB / 468 MB, free: 8.914 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003642/0.08313, allocations: 284.9 kB / 468.3 MB, free: 8.633 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002462/0.08339, allocations: 251.1 kB / 468.5 MB, free: 8.387 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002766/0.08367, allocations: 278.8 kB / 468.8 MB, free: 8.113 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.623e-05/0.08376, allocations: 68 kB / 468.9 MB, free: 8.047 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.472e-05/0.08385, allocations: 68 kB / 468.9 MB, free: 7.98 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001085/0.08396, allocations: 131.6 kB / 469.1 MB, free: 7.852 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002285/0.0842, allocations: 306.5 kB / 469.4 MB, free: 7.551 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005541/0.08476, allocations: 0.7167 MB / 470.1 MB, free: 6.832 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.08477, allocations: 4 kB / 470.1 MB, free: 6.828 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.08478, allocations: 0 / 470.1 MB, free: 6.828 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.474e-06/0.08479, allocations: 4 kB / 470.1 MB, free: 6.824 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.001262/0.08606, allocations: 0.8344 MB / 470.9 MB, free: 5.938 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.0861, allocations: 8.031 kB / 470.9 MB, free: 5.93 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.697e-05/0.08621, allocations: 90.7 kB / 471 MB, free: 5.832 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.658e-05/0.0863, allocations: 56.28 kB / 471.1 MB, free: 5.777 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004092/0.08671, allocations: 367.5 kB / 471.4 MB, free: 5.383 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.514e-05/0.08676, allocations: 41.69 kB / 471.5 MB, free: 5.344 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.837e-05/0.08683, allocations: 48.38 kB / 471.5 MB, free: 5.297 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008736/0.08771, allocations: 0.5264 MB / 472 MB, free: 4.754 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.425e-05/0.08774, allocations: 0 / 472 MB, free: 4.754 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.495e-05/0.08779, allocations: 20 kB / 472.1 MB, free: 4.734 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.516e-05/0.08781, allocations: 12 kB / 472.1 MB, free: 4.723 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007835/0.0886, allocations: 391.7 kB / 472.5 MB, free: 4.34 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002483/0.09109, allocations: 1.91 MB / 474.4 MB, free: 2.316 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000643/0.09175, allocations: 316.1 kB / 474.7 MB, free: 2 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005058/0.09227, allocations: 227.7 kB / 474.9 MB, free: 1.777 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.901e-05/0.09231, allocations: 12.22 kB / 474.9 MB, free: 1.766 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.189e-05/0.09234, allocations: 42.83 kB / 474.9 MB, free: 1.715 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 1.462e-06/0.09235, allocations: 0 / 474.9 MB, free: 1.715 MB / 302.1 MB Notification: Performance of matching and sorting (n=47): time 0.004354/0.09671, allocations: 1.718 MB / 476.7 MB, free: 15.92 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.443e-05/0.09677, allocations: 55.84 kB / 476.7 MB, free: 15.85 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002899/0.09706, allocations: 299.2 kB / 477 MB, free: 15.55 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.352e-05/0.09711, allocations: 37.7 kB / 477 MB, free: 15.51 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001523/0.09727, allocations: 260.3 kB / 477.3 MB, free: 15.25 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001189/0.09739, allocations: 169.6 kB / 477.5 MB, free: 15.09 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001286/0.09753, allocations: 86.16 kB / 477.6 MB, free: 14.99 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001251/0.09766, allocations: 346.8 kB / 477.9 MB, free: 14.64 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003314/0.098, allocations: 145.1 kB / 478 MB, free: 14.5 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003888/0.09839, allocations: 246.5 kB / 478.3 MB, free: 14.23 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007233/0.09913, allocations: 409.2 kB / 478.7 MB, free: 13.8 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.09914, allocations: 0 / 478.7 MB, free: 13.8 MB / 318.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.00106/0.1002, allocations: 0.5559 MB / 479.2 MB, free: 13.23 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.1002, allocations: 11.94 kB / 479.2 MB, free: 13.22 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.1002, allocations: 0 / 479.2 MB, free: 13.22 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002795/0.1005, allocations: 109.7 kB / 479.3 MB, free: 13.11 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004393/0.101, allocations: 103.9 kB / 479.4 MB, free: 13.01 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002801/0.1038, allocations: 3.601 MB / 483 MB, free: 9.121 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002814/0.1041, allocations: 19.94 kB / 483.1 MB, free: 9.102 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.232e-05/0.1041, allocations: 23.92 kB / 483.1 MB, free: 9.078 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.0002051/0.1044, allocations: 186.4 kB / 483.3 MB, free: 8.887 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.271e-05/0.1044, allocations: 31.62 kB / 483.3 MB, free: 8.855 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.252e-05/0.1045, allocations: 51.8 kB / 483.4 MB, free: 8.805 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.967e-06/0.1045, allocations: 4 kB / 483.4 MB, free: 8.801 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.1046, allocations: 4 kB / 483.4 MB, free: 8.797 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.004e-06/0.1046, allocations: 3.984 kB / 483.4 MB, free: 8.793 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001659/0.1062, allocations: 1.128 MB / 484.5 MB, free: 7.602 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.594e-06/0.1062, allocations: 48 / 484.5 MB, free: 7.602 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003835/0.1066, allocations: 87.86 kB / 484.6 MB, free: 7.516 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002323/0.1069, allocations: 101.6 kB / 484.7 MB, free: 7.41 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.845e-05/0.1069, allocations: 12 kB / 484.7 MB, free: 7.398 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00262/0.1095, allocations: 3.593 MB / 488.3 MB, free: 3.52 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.1096, allocations: 3.938 kB / 488.3 MB, free: 3.516 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001289/0.1109, allocations: 0.7607 MB / 489.1 MB, free: 2.73 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001317/0.111, allocations: 152.6 kB / 489.2 MB, free: 2.562 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.864e-05/0.1111, allocations: 19.92 kB / 489.2 MB, free: 2.543 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003/0.1114, allocations: 23.98 kB / 489.2 MB, free: 2.52 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.26e-05/0.1115, allocations: 39.95 kB / 489.3 MB, free: 2.48 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.532e-05/0.1115, allocations: 12 kB / 489.3 MB, free: 2.469 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001802/0.1117, allocations: 209.9 kB / 489.5 MB, free: 2.266 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1117, allocations: 0 / 489.5 MB, free: 2.266 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005592/0.1123, allocations: 120 kB / 489.6 MB, free: 2.148 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.001529/0.1138, allocations: 1.326 MB / 490.9 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001178/0.115, allocations: 0.6786 MB / 491.6 MB, free: 84 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.115, allocations: 4.062 kB / 491.6 MB, free: 80 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006806/0.1157, allocations: 489.1 kB / 492.1 MB, free: 15.57 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004318/0.1161, allocations: 52.89 kB / 492.2 MB, free: 15.52 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005369/0.1215, allocations: 4.274 MB / 496.4 MB, free: 11.09 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003407/0.1219, allocations: 0.8433 MB / 497.3 MB, free: 10.22 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001905/0.1221, allocations: 39.27 kB / 497.3 MB, free: 10.18 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002023/0.1223, allocations: 167.4 kB / 497.5 MB, free: 10.02 MB / 334.1 MB Notification: Performance of SimCode: time 1.473e-06/0.1223, allocations: 0 / 497.5 MB, free: 10.02 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02745/0.1497, allocations: 8.549 MB / 0.4942 GB, free: 1.641 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002082/0.15, allocations: 214 kB / 0.4944 GB, free: 1.383 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.923/2.073, allocations: 0 / 0.4944 GB, free: 1.383 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)