Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000891/0.000891, allocations: 91.73 kB / 16.3 MB, free: 6.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009227/0.0009229, allocations: 185.4 kB / 17.2 MB, free: 6.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.343/1.343, allocations: 223.2 MB / 241.1 MB, free: 5.453 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002842/0.0002842, allocations: 7.203 kB / 300.8 MB, free: 6.074 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1086, allocations: 50.42 MB / 351.3 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.03097/0.1396, allocations: 31.63 MB / 382.9 MB, free: 11.88 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02425/0.1639, allocations: 10.01 MB / 392.9 MB, free: 1.836 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008244/0.1722, allocations: 259.1 kB / 393.1 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00835/0.1806, allocations: 2.075 MB / 395.2 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01444/0.1951, allocations: 3.526 MB / 398.7 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008252/0.2034, allocations: 1.792 MB / 400.5 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01974/0.2231, allocations: 9.999 MB / 410.5 MB, free: 172 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2658/0.489, allocations: 19.71 MB / 430.2 MB, free: 9.848 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009503/0.4986, allocations: 4.515 MB / 434.8 MB, free: 9.844 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01127/0.5099, allocations: 5.169 MB / 439.9 MB, free: 9.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004449/0.5144, allocations: 0.7563 MB / 440.7 MB, free: 9.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006984/0.5214, allocations: 1.07 MB / 441.8 MB, free: 9.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005271/0.5267, allocations: 2.387 MB / 444.1 MB, free: 9.836 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006096/0.5328, allocations: 2.513 MB / 446.7 MB, free: 9.805 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02913/0.562, allocations: 21.96 MB / 468.6 MB, free: 0 / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.562, allocations: 0 / 468.6 MB, free: 0 / 350.1 MB Notification: Performance of FrontEnd: time 4.148e-06/0.562, allocations: 64 / 468.6 MB, free: 0 / 350.1 MB Notification: Performance of Transformations before backend: time 0.0009555/0.563, allocations: 0 / 468.6 MB, free: 0 / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.04018/0.6032, allocations: 12.5 MB / 481.1 MB, free: 9.691 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.48e-05/0.6032, allocations: 7.469 kB / 481.1 MB, free: 9.691 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006884/0.6101, allocations: 1.713 MB / 482.8 MB, free: 9.262 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03362/0.6438, allocations: 6.048 MB / 488.9 MB, free: 3.977 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02041/0.6642, allocations: 7.719 MB / 496.6 MB, free: 15.41 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001172/0.6655, allocations: 0.9138 MB / 497.5 MB, free: 14.89 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005864/0.6714, allocations: 1.189 MB / 498.7 MB, free: 14.09 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05802/0.7294, allocations: 18.47 MB / 0.5051 GB, free: 1.176 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005706/0.73, allocations: 15.89 kB / 0.5051 GB, free: 1.16 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005134/0.7352, allocations: 0.4994 MB / 0.5056 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008204/0.736, allocations: 0.6382 MB / 0.5062 GB, free: 32 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04159/0.7776, allocations: 16.67 MB / 0.5225 GB, free: 15.35 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1227/0.9003, allocations: 58.98 MB / 0.5801 GB, free: 3.969 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2542/1.155, allocations: 32.83 MB / 0.6121 GB, free: 105 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01876/1.173, allocations: 8.752 MB / 0.6207 GB, free: 104.3 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.956e-05/1.173, allocations: 69.64 kB / 0.6207 GB, free: 104.3 MB / 462.1 MB Notification: Performance of pre-optimization done (n=359): time 5.03e-06/1.173, allocations: 0 / 0.6207 GB, free: 104.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=399): time 0.03411/1.208, allocations: 17.63 MB / 0.6379 GB, free: 98.2 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.336e-05/1.208, allocations: 93.64 kB / 0.638 GB, free: 98.13 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007127/1.215, allocations: 4.935 MB / 0.6429 GB, free: 96.3 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006694/1.216, allocations: 89.42 kB / 0.6429 GB, free: 96.22 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003103/1.219, allocations: 5.426 MB / 0.6482 GB, free: 92.13 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001461/1.22, allocations: 1.394 MB / 0.6496 GB, free: 91.07 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003458/1.22, allocations: 135.2 kB / 0.6497 GB, free: 90.96 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002934/1.221, allocations: 0.5732 MB / 0.6503 GB, free: 90.54 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003863/1.225, allocations: 2.91 MB / 0.6531 GB, free: 89.44 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004958/1.23, allocations: 5.831 MB / 0.6588 GB, free: 84.43 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006155/1.236, allocations: 4.218 MB / 0.6629 GB, free: 82.5 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.815e-05/1.236, allocations: 29.88 kB / 0.663 GB, free: 82.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=871) (initialization): time 0.01964/1.256, allocations: 9.842 MB / 0.6726 GB, free: 75.3 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001086/1.256, allocations: 48.38 kB / 0.6726 GB, free: 75.25 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001824/1.256, allocations: 104 kB / 0.6727 GB, free: 75.15 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002323/1.258, allocations: 0.937 MB / 0.6736 GB, free: 74.39 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005603/1.264, allocations: 1.59 MB / 0.6752 GB, free: 72.93 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01081/1.275, allocations: 9.692 MB / 0.6847 GB, free: 62.85 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006409/1.281, allocations: 403 kB / 0.685 GB, free: 62.46 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001457/1.283, allocations: 355.9 kB / 0.6854 GB, free: 62.11 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 451 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (822): * Single equations (assignments): 817 * 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: 3 * 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: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,59.4%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009378/1.292, allocations: 4.251 MB / 0.6895 GB, free: 57.84 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001697/1.294, allocations: 0.5132 MB / 0.69 GB, free: 57.32 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01173/1.305, allocations: 6.565 MB / 0.6965 GB, free: 50.71 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.523e-05/1.306, allocations: 40 kB / 0.6965 GB, free: 50.67 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.272e-05/1.306, allocations: 8 kB / 0.6965 GB, free: 50.66 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.011e-05/1.306, allocations: 19.92 kB / 0.6965 GB, free: 50.64 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0266/1.332, allocations: 15.86 MB / 0.712 GB, free: 34.75 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-05/1.332, allocations: 0 / 0.712 GB, free: 34.75 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003044/1.335, allocations: 0.7727 MB / 0.7128 GB, free: 33.98 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001928/1.337, allocations: 0.7768 MB / 0.7135 GB, free: 33.18 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003554/1.338, allocations: 87.97 kB / 0.7136 GB, free: 33.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008058/1.346, allocations: 8.845 MB / 0.7222 GB, free: 23.86 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/1.346, allocations: 4.031 kB / 0.7222 GB, free: 23.85 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01255/1.358, allocations: 9.969 MB / 0.732 GB, free: 13.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00315/1.362, allocations: 1.078 MB / 0.733 GB, free: 12.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001237/1.363, allocations: 75.98 kB / 0.7331 GB, free: 12.53 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003084/1.366, allocations: 227.8 kB / 0.7333 GB, free: 12.3 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008078/1.367, allocations: 270.8 kB / 0.7336 GB, free: 12.04 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003409/1.367, allocations: 116 kB / 0.7337 GB, free: 11.93 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005741/1.373, allocations: 3.283 MB / 0.7369 GB, free: 8.656 MB / 462.1 MB Notification: Performance of sort global known variables: time 6.91e-07/1.373, allocations: 0 / 0.7369 GB, free: 8.656 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.008892/1.382, allocations: 1.878 MB / 0.7387 GB, free: 6.781 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (378): * Single equations (assignments): 373 * 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: 3 * 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: 3 {(1,100.0%) 1,(8,59.4%) 38,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01518/1.397, allocations: 11.29 MB / 0.7498 GB, free: 11.34 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01406/1.411, allocations: 7.688 MB / 0.7573 GB, free: 3.578 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.252e-05/1.411, allocations: 1.812 kB / 0.7573 GB, free: 3.578 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2072/1.618, allocations: 3.588 MB / 0.7608 GB, free: 161.4 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007034/1.625, allocations: 1.163 MB / 0.7619 GB, free: 161.3 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1303/1.756, allocations: 126.8 MB / 0.8858 GB, free: 61.13 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007038/1.763, allocations: 7.516 MB / 0.8931 GB, free: 55.11 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006239/1.769, allocations: 2.164 MB / 0.8952 GB, free: 52.94 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004297/1.773, allocations: 4.264 MB / 0.8994 GB, free: 48.68 MB / 478.1 MB Notification: Performance of SimCode: time 1.382e-06/1.773, allocations: 3.938 kB / 0.8994 GB, free: 48.67 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4544/2.228, allocations: 142.9 MB / 1.039 GB, free: 86.15 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002391/2.228, allocations: 269.7 kB / 1.039 GB, free: 85.8 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.421/7.649, allocations: 0 / 1.039 GB, free: 85.8 MB / 478.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat does not exist to compare? outputFormat=mat