Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.conf.json 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/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM",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 4.0.0+maint.om/package.mo): time 0.001017/0.001017, allocations: 183.8 kB / 8.138 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.131/1.131, allocations: 221.4 MB / 229.9 MB, free: 3.074 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009507/0.0009507, allocations: 95.14 kB / 280.8 MB, free: 1.27 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09423/0.09521, allocations: 55.82 MB / 336.6 MB, free: 9.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1834/0.2787, allocations: 50.39 MB / 387 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1125/0.3912, allocations: 115.4 MB / 0.4906 GB, free: 3.305 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002176/0.3915, allocations: 88.45 kB / 0.4907 GB, free: 3.219 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.2145/0.606, allocations: 40.38 MB / 0.5302 GB, free: 80.63 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.225e-05/0.606, allocations: 8 kB / 0.5302 GB, free: 80.62 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008071/0.6069, allocations: 253.6 kB / 0.5304 GB, free: 80.38 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001812/0.6087, allocations: 1.066 MB / 0.5315 GB, free: 79.28 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.899e-05/0.6087, allocations: 48 kB / 0.5315 GB, free: 79.23 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001768/0.6089, allocations: 99.91 kB / 0.5316 GB, free: 79.14 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001437/0.6104, allocations: 0.7948 MB / 0.5324 GB, free: 78.34 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0017/0.6121, allocations: 1.144 MB / 0.5335 GB, free: 77.14 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.114e-05/0.6121, allocations: 7.984 kB / 0.5335 GB, free: 77.13 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.723e-05/0.6122, allocations: 0 / 0.5335 GB, free: 77.13 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.43e-05/0.6123, allocations: 39.94 kB / 0.5335 GB, free: 77.09 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006131/0.6184, allocations: 5.938 MB / 0.5393 GB, free: 70.91 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006303/0.619, allocations: 319.6 kB / 0.5396 GB, free: 70.59 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002797/0.6193, allocations: 203.8 kB / 0.5398 GB, free: 70.39 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.733e-05/0.6194, allocations: 4.438 kB / 0.5398 GB, free: 70.38 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.547e-05/0.6194, allocations: 39 kB / 0.5399 GB, free: 70.34 MB / 378.7 MB Notification: Performance of pre-optimization done (n=51): time 2.004e-06/0.6194, allocations: 0 / 0.5399 GB, free: 70.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=54): time 0.001713/0.6211, allocations: 1.278 MB / 0.5411 GB, free: 69.01 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.433e-05/0.6212, allocations: 81.55 kB / 0.5412 GB, free: 68.91 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009178/0.6221, allocations: 0.8087 MB / 0.542 GB, free: 68.09 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.016e-05/0.6221, allocations: 25.7 kB / 0.542 GB, free: 68.06 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002054/0.6223, allocations: 0.6566 MB / 0.5427 GB, free: 67.39 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.105e-05/0.6224, allocations: 197.1 kB / 0.5428 GB, free: 67.2 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.644e-05/0.6225, allocations: 0 / 0.5428 GB, free: 67.2 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.433e-05/0.6225, allocations: 345.9 kB / 0.5432 GB, free: 66.85 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002786/0.6228, allocations: 186 kB / 0.5434 GB, free: 66.67 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003781/0.6232, allocations: 0.5723 MB / 0.5439 GB, free: 65.91 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003894/0.6236, allocations: 291 kB / 0.5442 GB, free: 65.62 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.6236, allocations: 4 kB / 0.5442 GB, free: 65.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001076/0.6247, allocations: 0.8119 MB / 0.545 GB, free: 64.8 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000702/0.6254, allocations: 5.13 MB / 0.55 GB, free: 59.26 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.571e-05/0.6254, allocations: 12 kB / 0.55 GB, free: 59.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001349/0.6256, allocations: 44.84 kB / 0.5501 GB, free: 59.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000708/0.6263, allocations: 231.6 kB / 0.5503 GB, free: 58.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006416/0.6269, allocations: 1.247 MB / 0.5515 GB, free: 57.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006507/0.6276, allocations: 36.05 kB / 0.5515 GB, free: 57.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.381e-05/0.6277, allocations: 51.98 kB / 0.5516 GB, free: 57.53 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.079e-06/0.6277, allocations: 4 kB / 0.5516 GB, free: 57.53 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009353/0.6286, allocations: 0.66 MB / 0.5522 GB, free: 56.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.543e-05/0.6286, allocations: 20 kB / 0.5522 GB, free: 56.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.628e-05/0.6287, allocations: 40.84 kB / 0.5523 GB, free: 56.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006457/0.6294, allocations: 215.7 kB / 0.5525 GB, free: 56.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005684/0.63, allocations: 1.244 MB / 0.5537 GB, free: 55.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005825/0.6306, allocations: 19.91 kB / 0.5537 GB, free: 55.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.616e-05/0.6306, allocations: 48.16 kB / 0.5538 GB, free: 55.17 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 2 (currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * Array equations: 0 * Algorithm blocks: 0 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001229/0.6308, allocations: 145.7 kB / 0.5539 GB, free: 55.02 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001194/0.6309, allocations: 102.7 kB / 0.554 GB, free: 54.92 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007156/0.6316, allocations: 474.7 kB / 0.5545 GB, free: 54.44 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.509e-06/0.6316, allocations: 8 kB / 0.5545 GB, free: 54.43 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.6316, allocations: 0 / 0.5545 GB, free: 54.43 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.6316, allocations: 3.984 kB / 0.5545 GB, free: 54.43 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002307/0.6339, allocations: 1.559 MB / 0.556 GB, free: 52.81 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.001e-06/0.634, allocations: 0 / 0.556 GB, free: 52.81 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005016/0.6345, allocations: 115.8 kB / 0.5561 GB, free: 52.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.94e-05/0.6346, allocations: 25.06 kB / 0.5561 GB, free: 52.67 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.693e-05/0.6346, allocations: 8 kB / 0.5561 GB, free: 52.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00056/0.6352, allocations: 1.225 MB / 0.5573 GB, free: 51.32 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.6352, allocations: 4.031 kB / 0.5573 GB, free: 51.32 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008444/0.6361, allocations: 0.8768 MB / 0.5582 GB, free: 50.36 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001173/0.6372, allocations: 1.46 MB / 0.5596 GB, free: 48.82 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002923/0.6375, allocations: 227.7 kB / 0.5598 GB, free: 48.58 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001508/0.6377, allocations: 8 kB / 0.5598 GB, free: 48.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005045/0.6382, allocations: 31.97 kB / 0.5599 GB, free: 48.54 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.2e-05/0.6383, allocations: 40.23 kB / 0.5599 GB, free: 48.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.777e-05/0.6383, allocations: 16 kB / 0.5599 GB, free: 48.49 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0006663/0.639, allocations: 0.5932 MB / 0.5605 GB, free: 47.89 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002678/0.6417, allocations: 463.9 kB / 0.5609 GB, free: 47.43 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 10 (loadInertia.w,dcpm.la.i,armatureInverter.vDCFilter.y,armatureInverter.iMotFilter.y,armatureInverter.vMotFilter.y,armatureInverter.iDCFilter.y,armatureInverter.idealDcDc.deadTime.y,armatureInverter.idealDcDc.powerController.y,currentController.integrator.y,loadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003995/0.6421, allocations: 375.7 kB / 0.5613 GB, free: 47.09 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001445/0.6435, allocations: 1.119 MB / 0.5624 GB, free: 45.95 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.6435, allocations: 4 kB / 0.5624 GB, free: 45.95 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003438/0.6439, allocations: 307.2 kB / 0.5627 GB, free: 45.64 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001019/0.6449, allocations: 219.8 kB / 0.5629 GB, free: 45.43 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003753/0.6487, allocations: 1.868 MB / 0.5647 GB, free: 43.5 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008376/0.6495, allocations: 1.305 MB / 0.566 GB, free: 42.17 MB / 378.7 MB Notification: Performance of SimCode: time 5.61e-07/0.6496, allocations: 0 / 0.566 GB, free: 42.17 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat does not exist to compare? outputFormat=mat