Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.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.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase",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.00124/0.00124, allocations: 179.3 kB / 8.478 MB, free: 1.875 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.123/1.123, allocations: 205.2 MB / 214.1 MB, free: 5.156 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.0008522/0.0008522, allocations: 87.72 kB / 262.1 MB, free: 5.211 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2014/0.2022, allocations: 52.98 MB / 315.1 MB, free: 41.4 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06035/0.2626, allocations: 47.57 MB / 362.6 MB, free: 9.875 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2224/0.485, allocations: 112.5 MB / 475.2 MB, free: 12.57 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002048/0.4853, allocations: 83.38 kB / 475.3 MB, free: 12.53 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1854 * Number of variables: 1854 Notification: Performance of Generate backend data structure: time 0.5041/0.9894, allocations: 163.9 MB / 0.6242 GB, free: 68.99 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.618e-05/0.9895, allocations: 13.23 kB / 0.6242 GB, free: 68.99 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008941/0.9984, allocations: 1.53 MB / 0.6257 GB, free: 68.58 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01241/1.011, allocations: 5.759 MB / 0.6313 GB, free: 67.71 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002713/1.011, allocations: 225.9 kB / 0.6315 GB, free: 67.71 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001643/1.013, allocations: 418 kB / 0.6319 GB, free: 67.7 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01308/1.026, allocations: 7.024 MB / 0.6388 GB, free: 67.67 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01669/1.043, allocations: 8.125 MB / 0.6467 GB, free: 66.69 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002188/1.043, allocations: 2.812 kB / 0.6467 GB, free: 66.69 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001024/1.044, allocations: 10.69 kB / 0.6467 GB, free: 66.69 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002126/1.044, allocations: 338.9 kB / 0.647 GB, free: 66.65 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04343/1.088, allocations: 27.68 MB / 0.6741 GB, free: 52.08 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003224/1.091, allocations: 2.143 MB / 0.6762 GB, free: 51.18 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004443/1.095, allocations: 3.025 MB / 0.6791 GB, free: 49.84 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01317/1.108, allocations: 8.298 MB / 0.6872 GB, free: 42.85 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.437e-05/1.109, allocations: 77.06 kB / 0.6873 GB, free: 42.77 MB / 426.7 MB Notification: Performance of pre-optimization done (n=326): time 5.7e-06/1.109, allocations: 0 / 0.6873 GB, free: 42.77 MB / 426.7 MB Notification: Performance of matching and sorting (n=332): time 0.0155/1.124, allocations: 8.94 MB / 0.696 GB, free: 34.57 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.721e-05/1.124, allocations: 86.02 kB / 0.6961 GB, free: 34.47 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003587/1.128, allocations: 2.384 MB / 0.6984 GB, free: 32.33 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002116/1.128, allocations: 25.7 kB / 0.6985 GB, free: 32.3 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008424/1.129, allocations: 2.471 MB / 0.7009 GB, free: 30.14 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006053/1.129, allocations: 1.088 MB / 0.7019 GB, free: 29.14 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002125/1.13, allocations: 0 / 0.7019 GB, free: 29.14 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001671/1.13, allocations: 459.8 kB / 0.7024 GB, free: 28.73 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002066/1.132, allocations: 1.547 MB / 0.7039 GB, free: 27.31 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00241/1.134, allocations: 2.575 MB / 0.7064 GB, free: 24.46 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00337/1.138, allocations: 2.138 MB / 0.7085 GB, free: 22.59 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.94e-05/1.138, allocations: 19.28 kB / 0.7085 GB, free: 22.58 MB / 426.7 MB Notification: Performance of matching and sorting (n=503) (initialization): time 0.0078/1.146, allocations: 4.94 MB / 0.7133 GB, free: 18.09 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/1.146, allocations: 7.438 kB / 0.7133 GB, free: 18.09 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.442e-05/1.146, allocations: 32 kB / 0.7134 GB, free: 18.05 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009424/1.147, allocations: 394.9 kB / 0.7137 GB, free: 17.71 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003609/1.15, allocations: 0.9002 MB / 0.7146 GB, free: 16.93 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004958/1.155, allocations: 6.962 MB / 0.7214 GB, free: 9.883 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002772/1.158, allocations: 90.94 kB / 0.7215 GB, free: 9.809 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003787/1.158, allocations: 163.7 kB / 0.7217 GB, free: 9.652 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 146 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (478): * Single equations (assignments): 472 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005742/1.159, allocations: 219.2 kB / 0.7219 GB, free: 9.434 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006877/1.16, allocations: 355.4 kB / 0.7222 GB, free: 9.086 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008/1.168, allocations: 4.619 MB / 0.7267 GB, free: 5.07 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.068e-05/1.168, allocations: 32 kB / 0.7267 GB, free: 5.039 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.556e-05/1.168, allocations: 12 kB / 0.7268 GB, free: 5.027 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.801e-05/1.168, allocations: 14.81 kB / 0.7268 GB, free: 5.027 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.136/1.304, allocations: 10.43 MB / 0.737 GB, free: 101.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.174e-05/1.304, allocations: 3.938 kB / 0.737 GB, free: 101.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00241/1.306, allocations: 0.5011 MB / 0.7374 GB, free: 101.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002141/1.308, allocations: 0.852 MB / 0.7383 GB, free: 101.7 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002571/1.309, allocations: 35.39 kB / 0.7383 GB, free: 101.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01317/1.322, allocations: 15.06 MB / 0.753 GB, free: 93.07 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.336e-06/1.322, allocations: 11.75 kB / 0.753 GB, free: 93.07 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01025/1.332, allocations: 7.076 MB / 0.7599 GB, free: 92 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01232/1.344, allocations: 9.725 MB / 0.7694 GB, free: 90.55 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001783/1.346, allocations: 0.7818 MB / 0.7702 GB, free: 90.45 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008802/1.347, allocations: 24.23 kB / 0.7702 GB, free: 90.45 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002294/1.349, allocations: 99.56 kB / 0.7703 GB, free: 90.45 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003591/1.35, allocations: 177.1 kB / 0.7705 GB, free: 90.45 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002317/1.35, allocations: 93.38 kB / 0.7706 GB, free: 90.45 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.002932/1.353, allocations: 1.761 MB / 0.7723 GB, free: 90.3 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004569/1.358, allocations: 1.131 MB / 0.7734 GB, free: 90.3 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 14 (smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smr3.inertiaRotor.w,smr3.stator.core.Phi.re,smr3.stator.core.Phi.im,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController3.x,vfControllerM.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (265): * Single equations (assignments): 258 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 5,(4,93.8%) 33,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007296/1.358, allocations: 458.8 kB / 0.7738 GB, free: 90.21 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005562/1.364, allocations: 4.412 MB / 0.7781 GB, free: 89.54 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.087e-06/1.364, allocations: 0 / 0.7781 GB, free: 89.54 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003619/1.368, allocations: 2.809 MB / 0.7809 GB, free: 88.81 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003095/1.371, allocations: 0.6515 MB / 0.7815 GB, free: 88.8 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01903/1.39, allocations: 10.2 MB / 0.7915 GB, free: 86.69 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004786/1.395, allocations: 4.666 MB / 0.796 GB, free: 85.79 MB / 426.7 MB Notification: Performance of SimCode: time 4.71e-07/1.395, allocations: 0 / 0.796 GB, free: 85.79 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase_res.mat does not exist to compare? outputFormat=mat