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: translateModel(HanserModelica.Magnetic.TestTransformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1600,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Magnetic.TestTransformer") translateModel(HanserModelica.Magnetic.TestTransformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1600,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Magnetic.TestTransformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006429/0.006429, allocations: 103.7 kB / 15.74 MB, free: 5.953 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.468/1.468, allocations: 222.9 MB / 239.4 MB, free: 4.426 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.001654/0.001654, allocations: 180.5 kB / 289.7 MB, free: 2.148 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03589/0.03589, allocations: 8.794 MB / 348.6 MB, free: 4.539 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001553/0.001553, allocations: 75.88 kB / 463.9 MB, free: 13.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1023, allocations: 51.57 MB / 0.5034 GB, free: 9.391 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Magnetic.TestTransformer): time 0.005056/0.1074, allocations: 3.814 MB / 0.5071 GB, free: 5.559 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00188/0.1093, allocations: 0.9153 MB / 0.508 GB, free: 4.637 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004708/0.1098, allocations: 15.94 kB / 0.508 GB, free: 4.621 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003129/0.1102, allocations: 83.16 kB / 0.5081 GB, free: 4.539 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005304/0.1107, allocations: 162.6 kB / 0.5082 GB, free: 4.379 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004276/0.1112, allocations: 167.8 kB / 0.5084 GB, free: 4.215 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008161/0.112, allocations: 0.6385 MB / 0.509 GB, free: 3.574 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004367/0.1124, allocations: 280.9 kB / 0.5093 GB, free: 3.293 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003965/0.1128, allocations: 259.1 kB / 0.5095 GB, free: 3.039 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003868/0.1132, allocations: 270.9 kB / 0.5098 GB, free: 2.773 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001264/0.1134, allocations: 72 kB / 0.5099 GB, free: 2.703 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001153/0.1135, allocations: 71.94 kB / 0.5099 GB, free: 2.633 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001186/0.1136, allocations: 139.5 kB / 0.5101 GB, free: 2.496 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002619/0.1139, allocations: 298.7 kB / 0.5104 GB, free: 2.203 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006611/0.1145, allocations: 0.7359 MB / 0.5111 GB, free: 1.465 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1146, allocations: 0 / 0.5111 GB, free: 1.465 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.1146, allocations: 0 / 0.5111 GB, free: 1.465 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.946e-05/0.1146, allocations: 0 / 0.5111 GB, free: 1.465 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001456/0.1161, allocations: 0.8305 MB / 0.5119 GB, free: 0.582 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.1161, allocations: 8.031 kB / 0.5119 GB, free: 0.5742 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001114/0.1162, allocations: 60.28 kB / 0.512 GB, free: 0.5156 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005385/0.1168, allocations: 379.5 kB / 0.5123 GB, free: 108 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.742e-05/0.1168, allocations: 37.69 kB / 0.5124 GB, free: 72 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.036e-05/0.1169, allocations: 48.38 kB / 0.5124 GB, free: 24 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009049/0.1178, allocations: 0.519 MB / 0.5129 GB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.557e-05/0.1178, allocations: 3.938 kB / 0.5129 GB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.409e-05/0.1179, allocations: 24 kB / 0.5129 GB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.391e-05/0.1179, allocations: 12 kB / 0.5129 GB, free: 15.44 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008298/0.1187, allocations: 395.7 kB / 0.5133 GB, free: 15.05 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002685/0.1214, allocations: 1.875 MB / 0.5152 GB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006895/0.1221, allocations: 315.4 kB / 0.5155 GB, free: 12.75 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005095/0.1227, allocations: 227.5 kB / 0.5157 GB, free: 12.53 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.79e-05/0.1227, allocations: 4.281 kB / 0.5157 GB, free: 12.53 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.014e-05/0.1227, allocations: 42.84 kB / 0.5157 GB, free: 12.48 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 1.442e-06/0.1227, allocations: 0 / 0.5157 GB, free: 12.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=47): time 0.004528/0.1273, allocations: 1.733 MB / 0.5174 GB, free: 10.66 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.674e-05/0.1273, allocations: 55.84 kB / 0.5175 GB, free: 10.6 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003155/0.1277, allocations: 299.3 kB / 0.5177 GB, free: 10.3 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.99e-05/0.1277, allocations: 37.7 kB / 0.5178 GB, free: 10.26 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001605/0.1279, allocations: 264.2 kB / 0.518 GB, free: 9.992 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001183/0.128, allocations: 157.6 kB / 0.5182 GB, free: 9.836 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001331/0.1281, allocations: 90.25 kB / 0.5183 GB, free: 9.742 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.1283, allocations: 346.8 kB / 0.5186 GB, free: 9.395 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003555/0.1286, allocations: 153 kB / 0.5187 GB, free: 9.246 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003981/0.129, allocations: 238.6 kB / 0.519 GB, free: 8.977 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007759/0.1298, allocations: 413.1 kB / 0.5194 GB, free: 8.543 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.1298, allocations: 0 / 0.5194 GB, free: 8.543 MB / 366.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001131/0.131, allocations: 0.5674 MB / 0.5199 GB, free: 7.961 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.131, allocations: 4 kB / 0.5199 GB, free: 7.957 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.252e-05/0.131, allocations: 4 kB / 0.5199 GB, free: 7.953 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003039/0.1313, allocations: 97.61 kB / 0.52 GB, free: 7.852 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000469/0.1318, allocations: 111.9 kB / 0.5201 GB, free: 7.742 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003177/0.135, allocations: 3.59 MB / 0.5236 GB, free: 3.875 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002729/0.1353, allocations: 20.02 kB / 0.5237 GB, free: 3.855 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.831e-05/0.1353, allocations: 20 kB / 0.5237 GB, free: 3.836 MB / 366.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.0002266/0.1356, allocations: 193.6 kB / 0.5239 GB, free: 3.637 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.195e-05/0.1356, allocations: 39.53 kB / 0.5239 GB, free: 3.598 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.592e-05/0.1357, allocations: 47.73 kB / 0.5239 GB, free: 3.551 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.1358, allocations: 8 kB / 0.524 GB, free: 3.543 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.746e-06/0.1358, allocations: 0 / 0.524 GB, free: 3.543 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.1358, allocations: 3.984 kB / 0.524 GB, free: 3.539 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001801/0.1376, allocations: 1.129 MB / 0.5251 GB, free: 2.348 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.1376, allocations: 0 / 0.5251 GB, free: 2.348 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003851/0.138, allocations: 83.88 kB / 0.5251 GB, free: 2.266 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002521/0.1383, allocations: 97.64 kB / 0.5252 GB, free: 2.164 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.386e-05/0.1383, allocations: 12 kB / 0.5252 GB, free: 2.152 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2857/0.424, allocations: 3.594 MB / 0.5288 GB, free: 22.61 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.4241, allocations: 2.062 kB / 0.5288 GB, free: 22.61 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001354/0.4254, allocations: 0.7646 MB / 0.5295 GB, free: 22.45 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001514/0.4256, allocations: 153 kB / 0.5296 GB, free: 22.36 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.156e-05/0.4256, allocations: 10.53 kB / 0.5297 GB, free: 22.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002816/0.4259, allocations: 29.41 kB / 0.5297 GB, free: 22.36 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.282e-05/0.426, allocations: 33.11 kB / 0.5297 GB, free: 22.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.874e-05/0.4261, allocations: 13.81 kB / 0.5297 GB, free: 22.36 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001929/0.4263, allocations: 205.5 kB / 0.5299 GB, free: 22.29 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4263, allocations: 3.594 kB / 0.5299 GB, free: 22.29 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006489/0.4269, allocations: 118.8 kB / 0.53 GB, free: 22.29 MB / 366.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.0001183/0.4271, allocations: 112.3 kB / 0.5301 GB, free: 22.2 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001079/0.4281, allocations: 0.6623 MB / 0.5308 GB, free: 21.97 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.4282, allocations: 0 / 0.5308 GB, free: 21.97 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006315/0.4288, allocations: 485.8 kB / 0.5313 GB, free: 21.75 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003845/0.4292, allocations: 62.44 kB / 0.5313 GB, free: 21.75 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001738/0.4309, allocations: 1.004 MB / 0.5323 GB, free: 21.36 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002642/0.4312, allocations: 0.8399 MB / 0.5331 GB, free: 20.66 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000167/0.4314, allocations: 40.05 kB / 0.5332 GB, free: 20.65 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.634e-05/0.4315, allocations: 37.81 kB / 0.5332 GB, free: 20.64 MB / 366.1 MB Notification: Performance of SimCode: time 3.4e-07/0.4315, allocations: 0 / 0.5332 GB, free: 20.64 MB / 366.1 MB Notification: Performance of Templates: time 0.01179/0.4433, allocations: 4.865 MB / 0.5379 GB, free: 20.38 MB / 366.1 MB make -j1 -f HanserModelica_HanserModelica.Magnetic.TestTransformer.makefile (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 & ./HanserModelica_HanserModelica.Magnetic.TestTransformer -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.Magnetic.TestTransformer.pipe 2>&1)