Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.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,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0007549/0.0007548, allocations: 175.3 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.159/1.159, allocations: 205.4 MB / 222.9 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007762/0.0007763, allocations: 86.36 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002775/0.0002776, allocations: 8 kB / 327.6 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1851/0.1854, allocations: 47.57 MB / 375.2 MB, free: 45.32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.01434/0.1997, allocations: 17.89 MB / 393.1 MB, free: 30.68 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008948/0.2087, allocations: 5.587 MB / 398.7 MB, free: 25.07 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003021/0.2118, allocations: 111.5 kB / 398.8 MB, free: 24.96 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002907/0.2147, allocations: 0.9821 MB / 399.8 MB, free: 23.97 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004635/0.2194, allocations: 1.599 MB / 401.4 MB, free: 22.36 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002401/0.2218, allocations: 0.8347 MB / 402.2 MB, free: 21.53 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.006008/0.2278, allocations: 6.234 MB / 408.4 MB, free: 15.27 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005168/0.233, allocations: 4.457 MB / 412.9 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002598/0.2356, allocations: 1.996 MB / 414.9 MB, free: 8.727 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003199/0.2388, allocations: 2.661 MB / 417.5 MB, free: 6.055 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001077/0.2399, allocations: 324 kB / 417.9 MB, free: 5.738 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002225/0.2421, allocations: 0.605 MB / 418.5 MB, free: 5.133 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00156/0.2437, allocations: 1.378 MB / 419.8 MB, free: 3.75 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0036/0.2473, allocations: 2.646 MB / 422.5 MB, free: 1.086 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007885/0.2552, allocations: 8.368 MB / 430.9 MB, free: 8.695 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.2553, allocations: 0 / 430.9 MB, free: 8.695 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.908e-06/0.2553, allocations: 0 / 430.9 MB, free: 8.695 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000312/0.2556, allocations: 3.938 kB / 430.9 MB, free: 8.691 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: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.01312/0.2687, allocations: 5.525 MB / 436.4 MB, free: 3.086 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.2688, allocations: 12.03 kB / 436.4 MB, free: 3.074 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001772/0.2705, allocations: 0.6961 MB / 437.1 MB, free: 2.367 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004696/0.2753, allocations: 1.021 MB / 438.1 MB, free: 1.34 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006214/0.2815, allocations: 3.271 MB / 441.4 MB, free: 13.99 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004052/0.2819, allocations: 410.5 kB / 441.8 MB, free: 13.59 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001171/0.2831, allocations: 0.5076 MB / 442.3 MB, free: 13.08 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01317/0.2963, allocations: 6.736 MB / 449 MB, free: 6.273 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001438/0.2964, allocations: 7.906 kB / 449 MB, free: 6.266 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006887/0.2971, allocations: 216 kB / 449.2 MB, free: 6.055 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002088/0.2973, allocations: 242.2 kB / 449.5 MB, free: 5.816 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01023/0.3076, allocations: 5.736 MB / 455.2 MB, free: 72 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03074/0.3383, allocations: 21.19 MB / 476.4 MB, free: 10.38 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007343/0.3457, allocations: 8.546 MB / 485 MB, free: 0.8867 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003043/0.3488, allocations: 2.128 MB / 487.1 MB, free: 14.75 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009322/0.3581, allocations: 5.958 MB / 493 MB, free: 8.652 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.375e-05/0.3582, allocations: 64.5 kB / 493.1 MB, free: 8.582 MB / 378.7 MB Notification: Performance of pre-optimization done (n=205): time 3.276e-06/0.3582, allocations: 0 / 493.1 MB, free: 8.582 MB / 378.7 MB Notification: Performance of matching and sorting (n=222): time 0.1603/0.5185, allocations: 10.38 MB / 0.4917 GB, free: 103 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.265e-05/0.5186, allocations: 72.91 kB / 0.4918 GB, free: 102.9 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004657/0.5232, allocations: 2.883 MB / 0.4946 GB, free: 101.9 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002876/0.5235, allocations: 61.8 kB / 0.4946 GB, free: 101.8 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00117/0.5247, allocations: 2.359 MB / 0.4969 GB, free: 100.7 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005834/0.5253, allocations: 0.7683 MB / 0.4977 GB, free: 100.1 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002542/0.5256, allocations: 59.19 kB / 0.4977 GB, free: 100.1 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001773/0.5258, allocations: 419.8 kB / 0.4981 GB, free: 99.71 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002239/0.528, allocations: 1.271 MB / 0.4994 GB, free: 99.26 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00232/0.5303, allocations: 2.183 MB / 0.5015 GB, free: 97.68 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00421/0.5346, allocations: 3.679 MB / 0.5051 GB, free: 95.34 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.617e-05/0.5346, allocations: 11 kB / 0.5051 GB, free: 95.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.005801/0.5404, allocations: 4.451 MB / 0.5095 GB, free: 93.4 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.862e-05/0.5404, allocations: 15.5 kB / 0.5095 GB, free: 93.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.055e-05/0.5405, allocations: 31.41 kB / 0.5095 GB, free: 93.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000951/0.5414, allocations: 0.5106 MB / 0.51 GB, free: 93.22 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002148/0.5436, allocations: 0.6933 MB / 0.5107 GB, free: 93.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005665/0.5493, allocations: 9.338 MB / 0.5198 GB, free: 84.51 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002188/0.5515, allocations: 183.8 kB / 0.52 GB, free: 84.33 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001847/0.5517, allocations: 132.1 kB / 0.5201 GB, free: 84.2 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (348): * Single equations (assignments): 341 * 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: 5 * 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: 5 {(3,100.0%) 11,(1,100.0%) 3,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002007/0.5537, allocations: 1.52 MB / 0.5216 GB, free: 82.67 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000449/0.5541, allocations: 324.2 kB / 0.5219 GB, free: 82.35 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005028/0.5592, allocations: 3.886 MB / 0.5257 GB, free: 78.36 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-05/0.5592, allocations: 20 kB / 0.5257 GB, free: 78.34 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.021e-05/0.5592, allocations: 8 kB / 0.5257 GB, free: 78.34 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.656e-05/0.5593, allocations: 11.95 kB / 0.5257 GB, free: 78.32 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01046/0.5697, allocations: 8.51 MB / 0.534 GB, free: 69.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.646e-06/0.5698, allocations: 4 kB / 0.534 GB, free: 69.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001452/0.5712, allocations: 391.7 kB / 0.5344 GB, free: 69.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001521/0.5727, allocations: 0.7247 MB / 0.5351 GB, free: 68.55 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000135/0.5729, allocations: 59.97 kB / 0.5352 GB, free: 68.49 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009486/0.5824, allocations: 15.19 MB / 0.55 GB, free: 52.25 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.5824, allocations: 11.78 kB / 0.55 GB, free: 52.25 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006843/0.5893, allocations: 5.579 MB / 0.5555 GB, free: 46.53 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001307/0.5906, allocations: 0.6609 MB / 0.5561 GB, free: 45.84 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003616/0.591, allocations: 55.94 kB / 0.5562 GB, free: 45.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001344/0.5923, allocations: 149.1 kB / 0.5563 GB, free: 45.64 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004315/0.5928, allocations: 165.6 kB / 0.5565 GB, free: 45.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001218/0.5929, allocations: 72.09 kB / 0.5565 GB, free: 45.41 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00224/0.5951, allocations: 1.94 MB / 0.5584 GB, free: 43.47 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5951, allocations: 0 / 0.5584 GB, free: 43.47 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002608/0.5978, allocations: 0.9324 MB / 0.5594 GB, free: 42.54 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 13 (vfController.x,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,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.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 (185): * Single equations (assignments): 177 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(1,100.0%) 5,(3,100.0%) 11,(1,100.0%) 3,(1,100.0%) 1,(2,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006887/0.6046, allocations: 6.282 MB / 0.5655 GB, free: 36.12 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004766/0.6094, allocations: 3.969 MB / 0.5694 GB, free: 32.06 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.49e-06/0.6095, allocations: 4 kB / 0.5694 GB, free: 32.05 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003071/0.6125, allocations: 2.66 MB / 0.572 GB, free: 29.3 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00483/0.6174, allocations: 0.7966 MB / 0.5727 GB, free: 28.52 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04048/0.6579, allocations: 29.16 MB / 0.6012 GB, free: 13.56 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003109/0.661, allocations: 3.222 MB / 0.6044 GB, free: 10.3 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002369/0.6634, allocations: 1.96 MB / 0.6063 GB, free: 8.344 MB / 394.7 MB Notification: Performance of SimCode: time 4.3e-07/0.6634, allocations: 0 / 0.6063 GB, free: 8.344 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 10.01/10.68, allocations: 265.8 MB / 0.8659 GB, free: 106.4 MB / 442.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMR_Inverter/SMR_Inverter.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches