Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupply.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DemoPowerSupply,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_DemoPowerSupply",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DemoPowerSupply,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_DemoPowerSupply",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001447/0.001447, allocations: 118.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001686/0.001686, allocations: 198 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.328/1.328, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001802/0.001802, allocations: 55.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2564/0.2582, allocations: 50.55 MB / 408.8 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupply): time 0.003477/0.2617, allocations: 2.054 MB / 410.8 MB, free: 15.49 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001091/0.2629, allocations: 0.5649 MB / 411.4 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001375/0.263, allocations: 0 / 411.4 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001372/0.2632, allocations: 19.78 kB / 411.4 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001122/0.2633, allocations: 31.72 kB / 411.4 MB, free: 14.87 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003065/0.2636, allocations: 79.83 kB / 411.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003136/0.264, allocations: 215.3 kB / 411.7 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000136/0.2641, allocations: 53.02 kB / 411.8 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001272/0.2642, allocations: 83.7 kB / 411.9 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001918/0.2644, allocations: 83.72 kB / 411.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.4e-05/0.2645, allocations: 24 kB / 412 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.237e-05/0.2646, allocations: 24 kB / 412 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.094e-05/0.2646, allocations: 31.91 kB / 412 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.135e-05/0.2647, allocations: 83.64 kB / 412.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002428/0.2649, allocations: 185.1 kB / 412.3 MB, free: 14.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.265, allocations: 0 / 412.3 MB, free: 14.02 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.265, allocations: 0 / 412.3 MB, free: 14.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.893e-06/0.265, allocations: 0 / 412.3 MB, free: 14.02 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0007608/0.2657, allocations: 492.6 kB / 412.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.567e-05/0.2658, allocations: 8.031 kB / 412.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.762e-05/0.2658, allocations: 50.62 kB / 412.8 MB, free: 13.42 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001314/0.266, allocations: 20.84 kB / 412.8 MB, free: 13.4 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003298/0.2663, allocations: 212 kB / 413 MB, free: 13.15 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001023/0.2664, allocations: 97.66 kB / 413.1 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.277e-05/0.2665, allocations: 12.38 kB / 413.2 MB, free: 13.03 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000324/0.2668, allocations: 136.8 kB / 413.3 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.948e-06/0.2668, allocations: 0 / 413.3 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.697e-05/0.2669, allocations: 4 kB / 413.3 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.684e-06/0.2669, allocations: 4 kB / 413.3 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003176/0.2672, allocations: 111.8 kB / 413.4 MB, free: 12.77 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008568/0.2681, allocations: 0.5032 MB / 413.9 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003379/0.2684, allocations: 118.6 kB / 414 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001314/0.2685, allocations: 48.83 kB / 414.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.055e-05/0.2686, allocations: 8 kB / 414.1 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.523e-05/0.2686, allocations: 38.5 kB / 414.1 MB, free: 11.98 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.342e-06/0.2686, allocations: 0 / 414.1 MB, free: 11.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0008431/0.2695, allocations: 299.4 kB / 414.4 MB, free: 11.66 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.12e-05/0.2695, allocations: 55.41 kB / 414.5 MB, free: 11.6 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001184/0.2696, allocations: 153.3 kB / 414.6 MB, free: 11.43 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.397e-05/0.2697, allocations: 29.7 kB / 414.6 MB, free: 11.4 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.49e-05/0.2697, allocations: 119.9 kB / 414.8 MB, free: 11.28 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.876e-05/0.2698, allocations: 27.56 kB / 414.8 MB, free: 11.25 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.821e-05/0.2699, allocations: 33.7 kB / 414.8 MB, free: 11.21 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.539e-05/0.27, allocations: 322.8 kB / 415.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001721/0.2701, allocations: 55.97 kB / 415.2 MB, free: 10.83 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001829/0.2703, allocations: 90.48 kB / 415.3 MB, free: 10.73 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003099/0.2706, allocations: 136.2 kB / 415.4 MB, free: 10.59 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.2707, allocations: 0 / 415.4 MB, free: 10.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0006015/0.2713, allocations: 271.8 kB / 415.7 MB, free: 10.3 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.056e-05/0.2713, allocations: 37.7 kB / 415.7 MB, free: 10.26 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.2713, allocations: 480 / 415.7 MB, free: 10.26 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002434/0.2716, allocations: 80.86 kB / 415.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.096e-05/0.2717, allocations: 15.98 kB / 415.8 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001799/0.2735, allocations: 1.621 MB / 417.4 MB, free: 8.395 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003326/0.2738, allocations: 47.95 kB / 417.5 MB, free: 8.348 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.169e-05/0.2739, allocations: 8 kB / 417.5 MB, free: 8.34 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 3 (dcPowerSupply.cp,dcPowerSupply.cc,dcPowerSupply.cv) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001065/0.274, allocations: 121.8 kB / 417.6 MB, free: 8.211 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.643e-05/0.274, allocations: 19.75 kB / 417.6 MB, free: 8.191 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003954/0.2744, allocations: 167.1 kB / 417.8 MB, free: 8.023 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.2744, allocations: 4.188 kB / 417.8 MB, free: 8.02 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.2745, allocations: 4 kB / 417.8 MB, free: 8.016 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.247e-06/0.2745, allocations: 7.938 kB / 417.8 MB, free: 8.008 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002195/0.2747, allocations: 217.6 kB / 418 MB, free: 7.746 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.2747, allocations: 0 / 418 MB, free: 7.746 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.315e-05/0.2748, allocations: 11.98 kB / 418 MB, free: 7.734 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001557/0.2749, allocations: 76.75 kB / 418.1 MB, free: 7.656 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.23e-05/0.275, allocations: 3.984 kB / 418.1 MB, free: 7.652 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001352/0.2763, allocations: 1.598 MB / 419.7 MB, free: 5.914 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.2763, allocations: 192 / 419.7 MB, free: 5.914 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003893/0.2767, allocations: 256.1 kB / 420 MB, free: 5.645 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.713e-05/0.2768, allocations: 101 kB / 420.1 MB, free: 5.527 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.705e-05/0.2768, allocations: 4 kB / 420.1 MB, free: 5.523 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001434/0.277, allocations: 11.98 kB / 420.1 MB, free: 5.512 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.145e-05/0.277, allocations: 11.98 kB / 420.1 MB, free: 5.5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.026e-05/0.2771, allocations: 4 kB / 420.1 MB, free: 5.496 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.943e-05/0.2771, allocations: 107.2 kB / 420.2 MB, free: 5.391 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2771, allocations: 0 / 420.2 MB, free: 5.391 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003119/0.2775, allocations: 52.17 kB / 420.2 MB, free: 5.34 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (dcPowerSupply.cv,dcPowerSupply.cc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006554/0.2781, allocations: 0.7883 MB / 421 MB, free: 4.523 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006097/0.2787, allocations: 322 kB / 421.3 MB, free: 4.184 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.2788, allocations: 0 / 421.3 MB, free: 4.184 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002761/0.279, allocations: 178.5 kB / 421.5 MB, free: 3.996 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003548/0.2794, allocations: 34.31 kB / 421.5 MB, free: 3.965 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002449/0.2819, allocations: 1.961 MB / 423.5 MB, free: 1.895 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002611/0.2821, allocations: 0.7045 MB / 424.2 MB, free: 1.164 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.559e-05/0.2822, allocations: 8.547 kB / 424.2 MB, free: 1.156 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.629e-05/0.2823, allocations: 32.02 kB / 424.3 MB, free: 1.125 MB / 334.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2823, allocations: 0 / 424.3 MB, free: 1.125 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02358/0.3059, allocations: 4.612 MB / 428.9 MB, free: 12.66 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.07/11.38, allocations: 23.44 kB / 428.9 MB, free: 12.64 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupply.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupply.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupply.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupply.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_DemoPowerSupply_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_DemoPowerSupply.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupply.pipe 2>&1)