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.0008801/0.0008802, allocations: 97.56 kB / 15.36 MB, free: 0.7344 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.372/1.372, allocations: 223.3 MB / 239.4 MB, free: 5.434 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.0009922/0.0009922, allocations: 184.5 kB / 290.6 MB, free: 2.098 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03353/0.03353, allocations: 8.804 MB / 350.5 MB, free: 4.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003943/0.0003945, allocations: 10.17 kB / 413.9 MB, free: 42.68 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08647/0.08689, allocations: 52.57 MB / 466.5 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Magnetic.TestTransformer): time 0.003783/0.09071, allocations: 3.444 MB / 469.9 MB, free: 9.598 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001429/0.09216, allocations: 0.8961 MB / 470.8 MB, free: 8.695 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002133/0.0924, allocations: 8 kB / 470.8 MB, free: 8.688 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001678/0.09257, allocations: 67.45 kB / 470.9 MB, free: 8.621 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003242/0.0929, allocations: 131 kB / 471 MB, free: 8.492 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003521/0.09326, allocations: 155.8 kB / 471.2 MB, free: 8.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005863/0.09386, allocations: 0.6034 MB / 471.8 MB, free: 7.734 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003412/0.09421, allocations: 235.7 kB / 472 MB, free: 7.496 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002305/0.09445, allocations: 199.2 kB / 472.2 MB, free: 7.301 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002628/0.09472, allocations: 238.8 kB / 472.4 MB, free: 7.066 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.475e-05/0.09478, allocations: 32 kB / 472.5 MB, free: 7.035 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.967e-05/0.09485, allocations: 28 kB / 472.5 MB, free: 7.008 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.267e-05/0.09494, allocations: 103.5 kB / 472.6 MB, free: 6.906 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002339/0.09518, allocations: 280.4 kB / 472.9 MB, free: 6.625 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005807/0.09577, allocations: 0.6732 MB / 473.5 MB, free: 5.949 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.09578, allocations: 0 / 473.5 MB, free: 5.949 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.09579, allocations: 0 / 473.5 MB, free: 5.949 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.0958, allocations: 0 / 473.5 MB, free: 5.949 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.001275/0.09708, allocations: 0.7487 MB / 474.3 MB, free: 5.152 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.514e-05/0.09713, allocations: 12.02 kB / 474.3 MB, free: 5.141 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001125/0.09725, allocations: 90.7 kB / 474.4 MB, free: 5.043 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000104/0.09736, allocations: 60.28 kB / 474.4 MB, free: 4.984 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004417/0.09781, allocations: 371.5 kB / 474.8 MB, free: 4.586 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.245e-05/0.09787, allocations: 41.69 kB / 474.9 MB, free: 4.543 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.515e-05/0.09795, allocations: 52.36 kB / 474.9 MB, free: 4.492 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009108/0.09887, allocations: 0.5187 MB / 475.4 MB, free: 3.961 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.322e-05/0.09889, allocations: 4 kB / 475.4 MB, free: 3.957 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.551e-05/0.09895, allocations: 23.98 kB / 475.5 MB, free: 3.934 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.236e-05/0.09896, allocations: 12 kB / 475.5 MB, free: 3.922 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008056/0.09977, allocations: 407.8 kB / 475.9 MB, free: 3.523 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002576/0.1024, allocations: 1.918 MB / 477.8 MB, free: 1.492 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007049/0.1031, allocations: 319.3 kB / 478.1 MB, free: 1.172 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000565/0.1037, allocations: 249.2 kB / 478.3 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.486e-05/0.1037, allocations: 8.266 kB / 478.3 MB, free: 0.918 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.639e-05/0.1037, allocations: 34.84 kB / 478.4 MB, free: 0.875 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 1.693e-06/0.1037, allocations: 0 / 478.4 MB, free: 0.875 MB / 302.1 MB Notification: Performance of matching and sorting (n=47): time 0.004588/0.1083, allocations: 1.788 MB / 480.2 MB, free: 15.01 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.2e-05/0.1084, allocations: 55.84 kB / 480.2 MB, free: 14.94 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003045/0.1087, allocations: 303.2 kB / 480.5 MB, free: 14.64 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.092e-05/0.1087, allocations: 33.7 kB / 480.5 MB, free: 14.6 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001604/0.1089, allocations: 264.2 kB / 480.8 MB, free: 14.34 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001077/0.109, allocations: 165.6 kB / 481 MB, free: 14.17 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.959e-05/0.1091, allocations: 49.69 kB / 481 MB, free: 14.12 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.1092, allocations: 342.8 kB / 481.3 MB, free: 13.77 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003595/0.1096, allocations: 153 kB / 481.5 MB, free: 13.62 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003967/0.11, allocations: 246.5 kB / 481.7 MB, free: 13.35 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007507/0.1107, allocations: 425.1 kB / 482.2 MB, free: 12.91 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.1108, allocations: 4 kB / 482.2 MB, free: 12.9 MB / 318.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001076/0.1118, allocations: 0.5675 MB / 482.7 MB, free: 12.32 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.54e-05/0.1119, allocations: 8.031 kB / 482.7 MB, free: 12.31 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.1119, allocations: 4 kB / 482.7 MB, free: 12.31 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002742/0.1122, allocations: 97.61 kB / 482.8 MB, free: 12.21 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004404/0.1126, allocations: 107.9 kB / 482.9 MB, free: 12.1 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002793/0.1154, allocations: 3.241 MB / 486.2 MB, free: 8.586 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002827/0.1157, allocations: 20.03 kB / 486.2 MB, free: 8.566 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.198e-05/0.1158, allocations: 19.98 kB / 486.2 MB, free: 8.547 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.0002485/0.116, allocations: 182.4 kB / 486.4 MB, free: 8.359 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.784e-05/0.1161, allocations: 35.56 kB / 486.4 MB, free: 8.324 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001088/0.1162, allocations: 51.73 kB / 486.5 MB, free: 8.273 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.1162, allocations: 12 kB / 486.5 MB, free: 8.262 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.649e-05/0.1162, allocations: 4 kB / 486.5 MB, free: 8.258 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.1163, allocations: 7.922 kB / 486.5 MB, free: 8.25 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00172/0.118, allocations: 1.144 MB / 487.7 MB, free: 7.043 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.641e-06/0.118, allocations: 4.188 kB / 487.7 MB, free: 7.039 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003653/0.1184, allocations: 79.89 kB / 487.7 MB, free: 6.961 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002403/0.1186, allocations: 105.6 kB / 487.8 MB, free: 6.852 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.62e-05/0.1187, allocations: 12 kB / 487.8 MB, free: 6.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002565/0.1212, allocations: 3.231 MB / 491.1 MB, free: 3.336 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.1212, allocations: 3.938 kB / 491.1 MB, free: 3.332 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001383/0.1226, allocations: 0.7841 MB / 491.9 MB, free: 2.523 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000149/0.1228, allocations: 144.7 kB / 492 MB, free: 2.363 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.705e-05/0.1228, allocations: 15.94 kB / 492 MB, free: 2.348 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002894/0.1231, allocations: 23.98 kB / 492 MB, free: 2.324 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.388e-05/0.1232, allocations: 47.94 kB / 492.1 MB, free: 2.277 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.535e-05/0.1233, allocations: 8 kB / 492.1 MB, free: 2.27 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002064/0.1235, allocations: 206 kB / 492.3 MB, free: 2.07 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1235, allocations: 0 / 492.3 MB, free: 2.07 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006192/0.1241, allocations: 120 kB / 492.4 MB, free: 1.953 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.001654/0.1258, allocations: 1.35 MB / 493.8 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001198/0.127, allocations: 0.6705 MB / 494.4 MB, free: 15.87 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.127, allocations: 0 / 494.4 MB, free: 15.87 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007313/0.1277, allocations: 0.4899 MB / 494.9 MB, free: 15.35 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004527/0.1282, allocations: 44.64 kB / 495 MB, free: 15.31 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005955/0.1342, allocations: 4.371 MB / 499.3 MB, free: 10.79 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004642/0.1347, allocations: 0.8395 MB / 0.4885 GB, free: 9.922 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002178/0.1349, allocations: 47.25 kB / 0.4885 GB, free: 9.879 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002388/0.1351, allocations: 171.4 kB / 0.4887 GB, free: 9.711 MB / 334.1 MB Notification: Performance of SimCode: time 7.11e-07/0.1351, allocations: 0 / 0.4887 GB, free: 9.711 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.021/0.1561, allocations: 8.146 MB / 0.4966 GB, free: 1.73 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002081/0.1564, allocations: 217.2 kB / 0.4968 GB, free: 1.469 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.91/2.066, allocations: 0 / 0.4968 GB, free: 1.469 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)