Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.DCSE_SinglePhase,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",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.0009956/0.0009956, allocations: 174.8 kB / 8.471 MB, free: 1.855 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.056/1.056, allocations: 205.2 MB / 214.1 MB, free: 5.164 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.0008225/0.0008226, allocations: 93.97 kB / 262.1 MB, free: 5.199 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1452/0.146, allocations: 52.97 MB / 315.1 MB, free: 41.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05981/0.2059, allocations: 47.59 MB / 362.6 MB, free: 9.859 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2068/0.4127, allocations: 97.46 MB / 460.1 MB, free: 7.164 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002049/0.4129, allocations: 82.27 kB / 460.2 MB, free: 7.152 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.07005/0.483, allocations: 29.37 MB / 489.6 MB, free: 3.195 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.488e-05/0.483, allocations: 12 kB / 489.6 MB, free: 3.184 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007343/0.4838, allocations: 194.3 kB / 489.8 MB, free: 2.992 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001419/0.4852, allocations: 0.8152 MB / 490.6 MB, free: 2.309 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.336e-05/0.4852, allocations: 32 kB / 490.6 MB, free: 2.277 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001145/0.4854, allocations: 59.91 kB / 490.7 MB, free: 2.219 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009672/0.4863, allocations: 0.544 MB / 491.2 MB, free: 1.895 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001174/0.4875, allocations: 0.7609 MB / 492 MB, free: 1.328 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.646e-05/0.4876, allocations: 7.906 kB / 492 MB, free: 1.32 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.96e-05/0.4876, allocations: 0 / 492 MB, free: 1.32 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.125e-05/0.4877, allocations: 24 kB / 492 MB, free: 1.297 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004616/0.4923, allocations: 3.767 MB / 495.8 MB, free: 14.11 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002763/0.4926, allocations: 181.9 kB / 495.9 MB, free: 13.99 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004748/0.4931, allocations: 266.3 kB / 496.2 MB, free: 13.79 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.309e-05/0.4931, allocations: 4 kB / 496.2 MB, free: 13.79 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.433e-05/0.4931, allocations: 41.38 kB / 496.3 MB, free: 13.75 MB / 346.7 MB Notification: Performance of pre-optimization done (n=43): time 1.804e-06/0.4931, allocations: 0 / 496.3 MB, free: 13.75 MB / 346.7 MB Notification: Performance of matching and sorting (n=48): time 0.001913/0.4951, allocations: 1.126 MB / 497.4 MB, free: 12.76 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.73e-05/0.4951, allocations: 89.53 kB / 497.5 MB, free: 12.65 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000707/0.4958, allocations: 0.596 MB / 498.1 MB, free: 12.21 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.071e-05/0.4959, allocations: 25.7 kB / 498.1 MB, free: 12.18 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002207/0.4961, allocations: 474.1 kB / 498.6 MB, free: 11.76 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001031/0.4962, allocations: 167.8 kB / 498.7 MB, free: 11.62 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.14e-05/0.4962, allocations: 0 / 498.7 MB, free: 11.62 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.4964, allocations: 388.4 kB / 499.1 MB, free: 11.26 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002567/0.4967, allocations: 142.1 kB / 499.2 MB, free: 11.18 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003989/0.4971, allocations: 425.1 kB / 499.6 MB, free: 10.71 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003171/0.4974, allocations: 224.7 kB / 499.9 MB, free: 10.56 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.568e-06/0.4974, allocations: 4 kB / 499.9 MB, free: 10.56 MB / 346.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.00106/0.4985, allocations: 0.6719 MB / 0.4888 GB, free: 10.02 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.253e-05/0.4985, allocations: 7.938 kB / 0.4888 GB, free: 10.01 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.2e-05/0.4985, allocations: 8.375 kB / 0.4888 GB, free: 10 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002775/0.4988, allocations: 99.67 kB / 0.4889 GB, free: 9.914 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005549/0.4994, allocations: 169.9 kB / 0.4891 GB, free: 9.754 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00228/0.5016, allocations: 2.906 MB / 0.4919 GB, free: 6.617 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005583/0.5022, allocations: 31.95 kB / 0.492 GB, free: 6.586 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.544e-05/0.5023, allocations: 32 kB / 0.492 GB, free: 6.555 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 83 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001262/0.5024, allocations: 124.7 kB / 0.4921 GB, free: 6.426 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001164/0.5025, allocations: 82.97 kB / 0.4922 GB, free: 6.344 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008024/0.5033, allocations: 465.1 kB / 0.4926 GB, free: 5.867 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.279e-06/0.5034, allocations: 4 kB / 0.4926 GB, free: 5.863 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.5034, allocations: 4.188 kB / 0.4926 GB, free: 5.859 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.073e-06/0.5034, allocations: 3.984 kB / 0.4926 GB, free: 5.855 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001824/0.5052, allocations: 1.295 MB / 0.4939 GB, free: 4.484 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.397e-06/0.5052, allocations: 0 / 0.4939 GB, free: 4.484 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003584/0.5056, allocations: 80.11 kB / 0.494 GB, free: 4.406 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002404/0.5058, allocations: 93.61 kB / 0.4941 GB, free: 4.309 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.563e-05/0.5059, allocations: 0 / 0.4941 GB, free: 4.309 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002162/0.5081, allocations: 2.89 MB / 0.4969 GB, free: 1.18 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.5081, allocations: 4 kB / 0.4969 GB, free: 1.176 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009985/0.5091, allocations: 0.8285 MB / 0.4977 GB, free: 268 kB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001365/0.5104, allocations: 1.39 MB / 0.4991 GB, free: 14.78 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002499/0.5107, allocations: 184.1 kB / 0.4992 GB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001158/0.5108, allocations: 7.984 kB / 0.4992 GB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004434/0.5113, allocations: 31.89 kB / 0.4993 GB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.677e-05/0.5114, allocations: 27.95 kB / 0.4993 GB, free: 14.52 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.903e-05/0.5114, allocations: 16 kB / 0.4993 GB, free: 14.5 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0005373/0.5119, allocations: 455.1 kB / 0.4998 GB, free: 14.06 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001379/0.5133, allocations: 204 kB / 0.4999 GB, free: 13.86 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 37 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003661/0.5137, allocations: 279.9 kB / 0.5002 GB, free: 13.59 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009912/0.5147, allocations: 0.6268 MB / 0.5008 GB, free: 12.94 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.509e-06/0.5147, allocations: 4 kB / 0.5008 GB, free: 12.93 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005587/0.5153, allocations: 408.3 kB / 0.5012 GB, free: 12.52 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000855/0.5162, allocations: 185 kB / 0.5014 GB, free: 12.33 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002516/0.5187, allocations: 1.266 MB / 0.5026 GB, free: 11.01 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007575/0.5194, allocations: 1.093 MB / 0.5037 GB, free: 9.895 MB / 362.7 MB Notification: Performance of SimCode: time 4.51e-07/0.5195, allocations: 3.938 kB / 0.5037 GB, free: 9.891 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat does not exist to compare? outputFormat=mat