Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled",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.3+maint.om/package.mo): time 0.0009745/0.0009745, allocations: 178.5 kB / 8.477 MB, free: 1.871 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.041/1.041, allocations: 205.2 MB / 214.1 MB, free: 5.176 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008444/0.0008444, allocations: 86.83 kB / 262.1 MB, free: 5.219 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1464/0.1473, allocations: 52.98 MB / 315.1 MB, free: 41.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06106/0.2084, allocations: 47.58 MB / 362.6 MB, free: 9.883 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2097/0.4181, allocations: 97.5 MB / 460.1 MB, free: 7.305 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002023/0.4184, allocations: 89.06 kB / 460.2 MB, free: 7.289 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.06804/0.4864, allocations: 28.28 MB / 488.5 MB, free: 4.137 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.191e-05/0.4865, allocations: 8 kB / 488.5 MB, free: 4.129 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006118/0.4871, allocations: 202.2 kB / 488.7 MB, free: 3.93 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001431/0.4885, allocations: 0.8506 MB / 489.6 MB, free: 3.215 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.996e-05/0.4886, allocations: 28 kB / 489.6 MB, free: 3.188 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001128/0.4887, allocations: 66.66 kB / 489.7 MB, free: 3.125 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009162/0.4896, allocations: 0.521 MB / 490.2 MB, free: 2.816 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001192/0.4908, allocations: 0.7687 MB / 490.9 MB, free: 2.227 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.644e-05/0.4909, allocations: 19.77 kB / 491 MB, free: 2.207 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.239e-05/0.4909, allocations: 0 / 491 MB, free: 2.207 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.333e-05/0.491, allocations: 27.98 kB / 491 MB, free: 2.18 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00465/0.4956, allocations: 3.97 MB / 495 MB, free: 14.75 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000581/0.4962, allocations: 243.2 kB / 495.2 MB, free: 14.59 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002041/0.4964, allocations: 132.3 kB / 495.3 MB, free: 14.5 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.902e-05/0.4965, allocations: 11.92 kB / 495.3 MB, free: 14.49 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.303e-05/0.4965, allocations: 41.33 kB / 495.4 MB, free: 14.45 MB / 346.7 MB Notification: Performance of pre-optimization done (n=37): time 2.024e-06/0.4965, allocations: 8 kB / 495.4 MB, free: 14.44 MB / 346.7 MB Notification: Performance of matching and sorting (n=40): time 0.001516/0.498, allocations: 0.9701 MB / 496.4 MB, free: 13.57 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.94e-05/0.4981, allocations: 81.11 kB / 496.4 MB, free: 13.47 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007673/0.4989, allocations: 0.6396 MB / 497.1 MB, free: 13 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.812e-05/0.4989, allocations: 25.7 kB / 497.1 MB, free: 12.96 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002454/0.4991, allocations: 490.7 kB / 497.6 MB, free: 12.54 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001107/0.4993, allocations: 143.4 kB / 497.7 MB, free: 12.41 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.188e-05/0.4993, allocations: 8 kB / 497.7 MB, free: 12.41 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.4994, allocations: 329.1 kB / 498.1 MB, free: 12.09 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002108/0.4996, allocations: 128.2 kB / 498.2 MB, free: 12.02 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004177/0.5001, allocations: 442.6 kB / 498.6 MB, free: 11.52 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003189/0.5004, allocations: 206.3 kB / 498.8 MB, free: 11.38 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.5004, allocations: 4 kB / 498.8 MB, free: 11.38 MB / 346.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.0009802/0.5014, allocations: 0.6175 MB / 499.4 MB, free: 10.87 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001359/0.5028, allocations: 4.078 MB / 0.4917 GB, free: 6.543 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.486e-05/0.5028, allocations: 15.94 kB / 0.4917 GB, free: 6.527 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001522/0.5029, allocations: 36.53 kB / 0.4918 GB, free: 6.492 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006145/0.5036, allocations: 172.7 kB / 0.4919 GB, free: 6.328 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009032/0.5045, allocations: 1.24 MB / 0.4931 GB, free: 5.012 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005165/0.505, allocations: 19.91 kB / 0.4932 GB, free: 4.992 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.581e-05/0.5051, allocations: 33.75 kB / 0.4932 GB, free: 4.965 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.027e-06/0.5051, allocations: 4 kB / 0.4932 GB, free: 4.961 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007495/0.5058, allocations: 0.4928 MB / 0.4937 GB, free: 4.578 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.816e-06/0.5059, allocations: 8.875 kB / 0.4937 GB, free: 4.57 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.655e-05/0.5059, allocations: 44.09 kB / 0.4937 GB, free: 4.527 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005582/0.5065, allocations: 170.6 kB / 0.4939 GB, free: 4.367 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000814/0.5073, allocations: 1.239 MB / 0.4951 GB, free: 3.043 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004672/0.5078, allocations: 15.98 kB / 0.4951 GB, free: 3.027 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.6e-05/0.5079, allocations: 41.28 kB / 0.4952 GB, free: 2.992 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 90 * 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.0001449/0.508, allocations: 141.5 kB / 0.4953 GB, free: 2.852 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001133/0.5081, allocations: 87.06 kB / 0.4954 GB, free: 2.766 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006803/0.5088, allocations: 356.7 kB / 0.4957 GB, free: 2.422 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/0.5088, allocations: 4 kB / 0.4957 GB, free: 2.418 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.5089, allocations: 4 kB / 0.4957 GB, free: 2.414 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.5089, allocations: 0 / 0.4957 GB, free: 2.414 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001648/0.5105, allocations: 1.149 MB / 0.4968 GB, free: 1.195 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.826e-06/0.5105, allocations: 0 / 0.4968 GB, free: 1.195 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003902/0.5109, allocations: 76.12 kB / 0.4969 GB, free: 1.121 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.507e-05/0.511, allocations: 24.84 kB / 0.4969 GB, free: 1.094 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.526e-05/0.5111, allocations: 4 kB / 0.4969 GB, free: 1.09 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008386/0.5119, allocations: 1.224 MB / 0.4981 GB, free: 15.75 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.888e-06/0.5119, allocations: 4 kB / 0.4981 GB, free: 15.75 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008247/0.5128, allocations: 0.7203 MB / 0.4988 GB, free: 14.94 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001144/0.5139, allocations: 1.221 MB / 0.5 GB, free: 13.63 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002501/0.5142, allocations: 191.9 kB / 0.5002 GB, free: 13.42 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001068/0.5143, allocations: 4 kB / 0.5002 GB, free: 13.42 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003976/0.5147, allocations: 15.98 kB / 0.5002 GB, free: 13.4 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.808e-05/0.5148, allocations: 19.97 kB / 0.5003 GB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.188e-05/0.5148, allocations: 16 kB / 0.5003 GB, free: 13.37 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0005908/0.5154, allocations: 483.1 kB / 0.5007 GB, free: 12.9 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002366/0.5178, allocations: 351.9 kB / 0.5011 GB, free: 12.55 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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.0003686/0.5182, allocations: 262.6 kB / 0.5013 GB, free: 12.29 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00126/0.5194, allocations: 0.8727 MB / 0.5022 GB, free: 11.4 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.5194, allocations: 4.125 kB / 0.5022 GB, free: 11.4 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003237/0.5198, allocations: 257.4 kB / 0.5024 GB, free: 11.14 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009504/0.5207, allocations: 193 kB / 0.5026 GB, free: 10.95 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002479/0.5232, allocations: 1.332 MB / 0.5039 GB, free: 9.562 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000734/0.524, allocations: 1.125 MB / 0.505 GB, free: 8.41 MB / 362.7 MB Notification: Performance of SimCode: time 2.51e-07/0.524, allocations: 0 / 0.505 GB, free: 8.41 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat does not exist to compare? outputFormat=mat