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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001965/0.001965, allocations: 114.3 kB / 18.94 MB, free: 2.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.567/1.567, allocations: 230.6 MB / 252.6 MB, free: 8.324 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001763/0.001763, allocations: 220.2 kB / 309.2 MB, free: 3.16 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo): time 0.04293/0.04293, allocations: 8.902 MB / 374.6 MB, free: 1.914 MB / 302.1 MB " [Timeout remaining time 180] Using package HanserModelica with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: HanserModelica requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: HanserModelica requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002941/0.002941, allocations: 83.88 kB / 0.4892 GB, free: 7.371 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3285/0.3314, allocations: 55.6 MB / 0.5435 GB, free: 26.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Magnetic.TestTransformer): time 0.004207/0.3356, allocations: 3.89 MB / 0.5473 GB, free: 24.05 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00167/0.3373, allocations: 0.9995 MB / 0.5483 GB, free: 23.32 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002426/0.3376, allocations: 10.31 kB / 0.5483 GB, free: 23.32 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000205/0.3378, allocations: 91.28 kB / 0.5484 GB, free: 23.26 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003127/0.3381, allocations: 168.4 kB / 0.5485 GB, free: 23.14 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003137/0.3384, allocations: 172.9 kB / 0.5487 GB, free: 23.03 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000435/0.3388, allocations: 0.644 MB / 0.5493 GB, free: 22.69 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002592/0.3391, allocations: 195.7 kB / 0.5495 GB, free: 22.58 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002883/0.3394, allocations: 275.6 kB / 0.5498 GB, free: 22.44 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002822/0.3397, allocations: 271.7 kB / 0.55 GB, free: 22.3 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.691e-05/0.3397, allocations: 78.55 kB / 0.5501 GB, free: 22.29 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001024/0.3398, allocations: 71.62 kB / 0.5502 GB, free: 22.29 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.87e-05/0.3399, allocations: 135.4 kB / 0.5503 GB, free: 22.19 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001906/0.3401, allocations: 300.2 kB / 0.5506 GB, free: 22 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006073/0.3407, allocations: 0.7435 MB / 0.5513 GB, free: 21.69 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.3407, allocations: 0 / 0.5513 GB, free: 21.69 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3407, allocations: 0 / 0.5513 GB, free: 21.69 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.043e-05/0.3407, allocations: 0 / 0.5513 GB, free: 21.69 MB / 382.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.001246/0.342, allocations: 0.7795 MB / 0.5521 GB, free: 21.14 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.826e-05/0.342, allocations: 9.312 kB / 0.5521 GB, free: 21.14 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.302e-05/0.3421, allocations: 91.84 kB / 0.5522 GB, free: 21.07 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002097/0.3423, allocations: 74.91 kB / 0.5522 GB, free: 21.04 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004796/0.3428, allocations: 307.8 kB / 0.5525 GB, free: 20.8 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.302e-05/0.3428, allocations: 40 kB / 0.5526 GB, free: 20.78 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.373e-05/0.3429, allocations: 48.41 kB / 0.5526 GB, free: 20.77 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007627/0.3436, allocations: 0.5256 MB / 0.5531 GB, free: 20.52 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.722e-05/0.3437, allocations: 3.938 kB / 0.5531 GB, free: 20.51 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.987e-05/0.3437, allocations: 22 kB / 0.5532 GB, free: 20.5 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.919e-06/0.3437, allocations: 12 kB / 0.5532 GB, free: 20.5 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006616/0.3444, allocations: 386.2 kB / 0.5535 GB, free: 20.36 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002191/0.3466, allocations: 1.846 MB / 0.5553 GB, free: 19.12 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005874/0.3472, allocations: 303.5 kB / 0.5556 GB, free: 18.99 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004535/0.3476, allocations: 209.8 kB / 0.5558 GB, free: 18.92 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.639e-05/0.3476, allocations: 7.438 kB / 0.5558 GB, free: 18.92 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.488e-05/0.3477, allocations: 37.88 kB / 0.5559 GB, free: 18.88 MB / 382.1 MB Notification: Performance of pre-optimization done (n=33): time 2.154e-06/0.3477, allocations: 0 / 0.5559 GB, free: 18.88 MB / 382.1 MB Notification: Performance of matching and sorting (n=47): time 0.004091/0.3518, allocations: 1.578 MB / 0.5574 GB, free: 18.17 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.942e-05/0.3518, allocations: 58.28 kB / 0.5575 GB, free: 18.11 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002797/0.3521, allocations: 304.1 kB / 0.5578 GB, free: 17.93 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.754e-05/0.3521, allocations: 33.7 kB / 0.5578 GB, free: 17.89 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001253/0.3522, allocations: 268.3 kB / 0.558 GB, free: 17.67 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001002/0.3523, allocations: 168.5 kB / 0.5582 GB, free: 17.54 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001188/0.3524, allocations: 88.56 kB / 0.5583 GB, free: 17.49 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.296e-05/0.3525, allocations: 345.5 kB / 0.5586 GB, free: 17.16 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002998/0.3528, allocations: 157.9 kB / 0.5588 GB, free: 17.1 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003214/0.3531, allocations: 235.7 kB / 0.559 GB, free: 16.95 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006202/0.3537, allocations: 412.8 kB / 0.5594 GB, free: 16.71 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.3537, allocations: 0 / 0.5594 GB, free: 16.71 MB / 382.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0009145/0.3547, allocations: 0.5518 MB / 0.5599 GB, free: 16.45 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.879e-05/0.3547, allocations: 5.938 kB / 0.5599 GB, free: 16.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.3547, allocations: 0 / 0.5599 GB, free: 16.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002657/0.3549, allocations: 107.2 kB / 0.56 GB, free: 16.4 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000439/0.3554, allocations: 104.7 kB / 0.5601 GB, free: 16.39 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002334/0.3577, allocations: 3.391 MB / 0.5634 GB, free: 13.24 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003166/0.358, allocations: 18 kB / 0.5635 GB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.347e-05/0.3581, allocations: 25.2 kB / 0.5635 GB, free: 13.22 MB / 382.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.0002451/0.3583, allocations: 188.9 kB / 0.5637 GB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.204e-05/0.3584, allocations: 39.92 kB / 0.5637 GB, free: 13.03 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.335e-05/0.3585, allocations: 46.41 kB / 0.5637 GB, free: 13 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.3585, allocations: 7.266 kB / 0.5638 GB, free: 13 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.401e-05/0.3585, allocations: 0 / 0.5638 GB, free: 13 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.317e-06/0.3585, allocations: 2.578 kB / 0.5638 GB, free: 13 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00185/0.3604, allocations: 1.103 MB / 0.5648 GB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.327e-06/0.3604, allocations: 0 / 0.5648 GB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004279/0.3608, allocations: 86.92 kB / 0.5649 GB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002862/0.3611, allocations: 101.8 kB / 0.565 GB, free: 12.3 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.296e-05/0.3611, allocations: 12.16 kB / 0.565 GB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002378/0.3635, allocations: 3.386 MB / 0.5683 GB, free: 9.133 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.3635, allocations: 8.609 kB / 0.5683 GB, free: 9.125 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001184/0.3647, allocations: 0.7739 MB / 0.5691 GB, free: 8.703 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001421/0.3648, allocations: 68.12 kB / 0.5692 GB, free: 8.66 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.812e-05/0.3649, allocations: 12.03 kB / 0.5692 GB, free: 8.652 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002843/0.3651, allocations: 26.58 kB / 0.5692 GB, free: 8.645 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001089/0.3653, allocations: 33.47 kB / 0.5692 GB, free: 8.641 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.131e-05/0.3653, allocations: 18.81 kB / 0.5692 GB, free: 8.633 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002404/0.3655, allocations: 216 kB / 0.5695 GB, free: 8.508 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3655, allocations: 0 / 0.5695 GB, free: 8.508 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007431/0.3663, allocations: 119 kB / 0.5696 GB, free: 8.492 MB / 382.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.001876/0.3681, allocations: 1.312 MB / 0.5708 GB, free: 7.539 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001841/0.37, allocations: 0.6446 MB / 0.5715 GB, free: 7.156 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.37, allocations: 0.5625 kB / 0.5715 GB, free: 7.156 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001154/0.3711, allocations: 479.8 kB / 0.5719 GB, free: 6.832 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007154/0.3719, allocations: 44.56 kB / 0.572 GB, free: 6.812 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009239/0.3811, allocations: 4.069 MB / 0.576 GB, free: 4.246 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006035/0.3817, allocations: 0.8454 MB / 0.5768 GB, free: 3.531 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003701/0.3821, allocations: 41.73 kB / 0.5768 GB, free: 3.523 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003418/0.3824, allocations: 169.3 kB / 0.577 GB, free: 3.395 MB / 382.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3824, allocations: 0 / 0.577 GB, free: 3.395 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04666/0.4291, allocations: 9.354 MB / 0.5861 GB, free: 15.95 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.86/12.29, allocations: 6.031 kB / 0.5861 GB, free: 15.95 MB / 398.1 MB " [Timeout remaining time 648] (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 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Magnetic_TestTransformer.fmu > HanserModelica_HanserModelica.Magnetic.TestTransformer.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.150515217101201] Failed to read output from testmodel.py, exit status != 0: 12.404772209003568 12.424285012 12.080100325 Calling exit ...