Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001009/0.001008, allocations: 186.8 kB / 8.136 MB, free: 2.195 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.05/1.05, allocations: 194.2 MB / 202.8 MB, free: 8.664 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001698/0.001698, allocations: 117.3 kB / 247.7 MB, free: 6.379 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1591/0.1591, allocations: 37.91 MB / 330.5 MB, free: 6.891 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2008/0.36, allocations: 59.34 MB / 389.9 MB, free: 78.02 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07602/0.4361, allocations: 53.24 MB / 443.1 MB, free: 24.88 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2527/0.6888, allocations: 96.2 MB / 0.5267 GB, free: 8.762 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.005766/0.6946, allocations: 2.156 MB / 0.5288 GB, free: 8.172 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.0401/0.7347, allocations: 16.49 MB / 0.5449 GB, free: 11.77 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.51e-05/0.7348, allocations: 8 kB / 0.5449 GB, free: 11.77 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001404/0.7349, allocations: 63.25 kB / 0.545 GB, free: 11.7 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001565/0.7365, allocations: 0.7571 MB / 0.5457 GB, free: 11.05 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.899e-05/0.7366, allocations: 12 kB / 0.5457 GB, free: 11.04 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.342e-05/0.7367, allocations: 31.91 kB / 0.5457 GB, free: 11.01 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005017/0.7372, allocations: 289.7 kB / 0.546 GB, free: 10.83 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006425/0.7378, allocations: 469.9 kB / 0.5465 GB, free: 10.43 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.869e-05/0.7378, allocations: 0 / 0.5465 GB, free: 10.43 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.608e-05/0.7379, allocations: 0 / 0.5465 GB, free: 10.43 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.272e-05/0.7379, allocations: 12 kB / 0.5465 GB, free: 10.42 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00225/0.7402, allocations: 1.985 MB / 0.5484 GB, free: 8.633 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002445/0.7404, allocations: 169.6 kB / 0.5486 GB, free: 8.484 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001815/0.7406, allocations: 77 kB / 0.5486 GB, free: 8.422 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.899e-05/0.7407, allocations: 8 kB / 0.5486 GB, free: 8.414 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001923/0.7409, allocations: 141.2 kB / 0.5488 GB, free: 8.281 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 1.573e-06/0.7409, allocations: 0 / 0.5488 GB, free: 8.281 MB / 362.7 MB Notification: Performance of matching and sorting (n=26): time 0.001609/0.7425, allocations: 1.012 MB / 0.5498 GB, free: 7.297 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.443e-05/0.7426, allocations: 136.5 kB / 0.5499 GB, free: 7.133 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000358/0.7429, allocations: 321.6 kB / 0.5502 GB, free: 6.871 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.401e-05/0.743, allocations: 25.7 kB / 0.5502 GB, free: 6.84 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001162/0.7431, allocations: 246.4 kB / 0.5505 GB, free: 6.621 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.635e-05/0.7431, allocations: 94.2 kB / 0.5506 GB, free: 6.539 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.41e-05/0.7432, allocations: 64 / 0.5506 GB, free: 6.539 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.7433, allocations: 350 kB / 0.5509 GB, free: 6.203 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001358/0.7434, allocations: 79.61 kB / 0.551 GB, free: 6.156 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001975/0.7436, allocations: 215.2 kB / 0.5512 GB, free: 5.93 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001733/0.7438, allocations: 111.1 kB / 0.5513 GB, free: 5.855 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.7438, allocations: 0 / 0.5513 GB, free: 5.855 MB / 362.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007789/0.7446, allocations: 403.2 kB / 0.5517 GB, free: 5.523 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.163e-05/0.7446, allocations: 4 kB / 0.5517 GB, free: 5.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/0.7446, allocations: 11.97 kB / 0.5517 GB, free: 5.508 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000397/0.7451, allocations: 92.16 kB / 0.5518 GB, free: 5.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002636/0.7453, allocations: 71.84 kB / 0.5518 GB, free: 5.359 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001664/0.747, allocations: 1.62 MB / 0.5534 GB, free: 3.793 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002624/0.7473, allocations: 12 kB / 0.5534 GB, free: 3.781 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.257e-05/0.7473, allocations: 19.98 kB / 0.5534 GB, free: 3.762 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001054/0.7474, allocations: 120.7 kB / 0.5536 GB, free: 3.641 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.686e-05/0.7475, allocations: 39.53 kB / 0.5536 GB, free: 3.602 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005202/0.748, allocations: 264.8 kB / 0.5539 GB, free: 3.402 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.748, allocations: 4 kB / 0.5539 GB, free: 3.398 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.748, allocations: 0 / 0.5539 GB, free: 3.398 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.7481, allocations: 0 / 0.5539 GB, free: 3.398 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001077/0.7491, allocations: 0.7015 MB / 0.5545 GB, free: 2.797 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.7492, allocations: 4 kB / 0.5545 GB, free: 2.793 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003028/0.7495, allocations: 51.91 kB / 0.5546 GB, free: 2.742 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002061/0.7497, allocations: 48.56 kB / 0.5546 GB, free: 2.699 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.428e-05/0.7497, allocations: 7.906 kB / 0.5546 GB, free: 2.691 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001179/0.7509, allocations: 1.381 MB / 0.556 GB, free: 1.285 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.7509, allocations: 0 / 0.556 GB, free: 1.285 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006937/0.7516, allocations: 481.6 kB / 0.5565 GB, free: 0.8672 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001006/0.7526, allocations: 0.9486 MB / 0.5574 GB, free: 16 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001843/0.7528, allocations: 126.8 kB / 0.5575 GB, free: 15.88 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.564e-05/0.7529, allocations: 11.89 kB / 0.5575 GB, free: 15.87 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002287/0.7531, allocations: 12 kB / 0.5575 GB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.198e-05/0.7532, allocations: 23.39 kB / 0.5575 GB, free: 15.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.883e-05/0.7532, allocations: 4 kB / 0.5576 GB, free: 15.84 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002633/0.7535, allocations: 250.5 kB / 0.5578 GB, free: 15.65 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001078/0.7546, allocations: 118.8 kB / 0.5579 GB, free: 15.54 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcm_par.motor.phi_el,dcm_par.motor.w_el,dcm_par.motor.i,dcm_par.motor.i_f,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006905/0.7553, allocations: 302.2 kB / 0.5582 GB, free: 15.29 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006838/0.756, allocations: 371 kB / 0.5585 GB, free: 14.98 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.756, allocations: 0 / 0.5585 GB, free: 14.98 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003337/0.7563, allocations: 213.3 kB / 0.5588 GB, free: 14.79 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005372/0.7569, allocations: 99.05 kB / 0.5588 GB, free: 14.71 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001546/0.7585, allocations: 0.872 MB / 0.5597 GB, free: 13.88 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005343/0.759, allocations: 0.9346 MB / 0.5606 GB, free: 12.94 MB / 378.7 MB Notification: Performance of SimCode: time 5.81e-07/0.759, allocations: 0 / 0.5606 GB, free: 12.94 MB / 378.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1)