Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.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 3.2.3+maint.om/package.mo", uses=false) 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 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.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",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.001394/0.001393, allocations: 113.3 kB / 17.28 MB, free: 6.312 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.00184/0.001839, allocations: 189.3 kB / 18.19 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.585/1.585, allocations: 205.1 MB / 224 MB, free: 12.43 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 44.14 kB / 280.3 MB, free: 3.363 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1095, allocations: 46.64 MB / 326.9 MB, free: 4.652 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.02617/0.1357, allocations: 24.53 MB / 351.4 MB, free: 12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02041/0.1562, allocations: 7.628 MB / 359.1 MB, free: 4.352 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008193/0.1645, allocations: 147.5 kB / 359.2 MB, free: 4.207 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02052/0.1851, allocations: 7.912 MB / 367.1 MB, free: 12.27 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01345/0.1986, allocations: 2.761 MB / 369.9 MB, free: 9.492 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006487/0.2051, allocations: 1.668 MB / 371.6 MB, free: 7.824 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2528/0.458, allocations: 11.17 MB / 382.7 MB, free: 11.76 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04013/0.4982, allocations: 26.93 MB / 409.7 MB, free: 5.035 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009439/0.5077, allocations: 6.025 MB / 415.7 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01199/0.5197, allocations: 6.759 MB / 422.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005583/0.5253, allocations: 1.727 MB / 424.2 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00888/0.5342, allocations: 2.125 MB / 426.3 MB, free: 8.031 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008113/0.5424, allocations: 3.431 MB / 429.7 MB, free: 5.121 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01514/0.5576, allocations: 6.438 MB / 436.2 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03018/0.5878, allocations: 23.03 MB / 459.2 MB, free: 8.98 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.844e-05/0.5879, allocations: 0 / 459.2 MB, free: 8.98 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.5879, allocations: 3.562 kB / 459.2 MB, free: 8.98 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0007371/0.5886, allocations: 0 / 459.2 MB, free: 8.98 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2742 * Number of variables: 2742 Notification: Performance of Generate backend data structure: time 0.04526/0.6339, allocations: 13.63 MB / 472.8 MB, free: 11.36 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.334e-05/0.634, allocations: 12.03 kB / 472.8 MB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005605/0.6396, allocations: 1.642 MB / 474.5 MB, free: 9.699 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03857/0.6782, allocations: 7.199 MB / 481.7 MB, free: 2.574 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0129/0.6911, allocations: 6.496 MB / 488.2 MB, free: 12.31 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006259/0.6918, allocations: 0.7387 MB / 488.9 MB, free: 11.58 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003609/0.6954, allocations: 0.971 MB / 489.9 MB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04134/0.7367, allocations: 16.64 MB / 0.4947 GB, free: 9.938 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003619/0.7371, allocations: 19.81 kB / 0.4947 GB, free: 9.918 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005091/0.7422, allocations: 406.4 kB / 0.4951 GB, free: 9.531 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007424/0.743, allocations: 0.5909 MB / 0.4956 GB, free: 8.938 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03298/0.776, allocations: 15.82 MB / 0.5111 GB, free: 9.105 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2792/1.055, allocations: 53.93 MB / 0.5637 GB, free: 123 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01827/1.074, allocations: 22.75 MB / 0.586 GB, free: 103.9 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006098/1.08, allocations: 3.827 MB / 0.5897 GB, free: 102.4 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01727/1.097, allocations: 11.8 MB / 0.6012 GB, free: 94.7 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.105e-05/1.097, allocations: 68.83 kB / 0.6013 GB, free: 94.64 MB / 446.1 MB Notification: Performance of pre-optimization done (n=363): time 5.149e-06/1.097, allocations: 3.938 kB / 0.6013 GB, free: 94.63 MB / 446.1 MB Notification: Performance of matching and sorting (n=368): time 0.03802/1.135, allocations: 17.49 MB / 0.6184 GB, free: 83.86 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.912e-05/1.135, allocations: 90.27 kB / 0.6185 GB, free: 83.75 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009273/1.144, allocations: 4.761 MB / 0.6231 GB, free: 78.96 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001196/1.146, allocations: 85.7 kB / 0.6232 GB, free: 78.88 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002659/1.148, allocations: 4.495 MB / 0.6276 GB, free: 74.35 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001877/1.15, allocations: 1.265 MB / 0.6288 GB, free: 73.1 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004212/1.154, allocations: 1.198 MB / 0.63 GB, free: 71.89 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.487e-05/1.155, allocations: 305.1 kB / 0.6303 GB, free: 71.59 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004254/1.159, allocations: 2.928 MB / 0.6331 GB, free: 68.66 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005102/1.164, allocations: 5.299 MB / 0.6383 GB, free: 62.27 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009543/1.174, allocations: 8.707 MB / 0.6468 GB, free: 52.45 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.498e-05/1.174, allocations: 24 kB / 0.6468 GB, free: 52.43 MB / 446.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01646/1.19, allocations: 9.663 MB / 0.6563 GB, free: 42.73 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.616e-05/1.19, allocations: 40.62 kB / 0.6563 GB, free: 42.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001134/1.19, allocations: 76.09 kB / 0.6564 GB, free: 42.62 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003445/1.194, allocations: 1.411 MB / 0.6578 GB, free: 41.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004883/1.199, allocations: 1.334 MB / 0.6591 GB, free: 39.87 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01485/1.214, allocations: 12.57 MB / 0.6713 GB, free: 27.03 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00577/1.219, allocations: 367.5 kB / 0.6717 GB, free: 26.67 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001274/1.221, allocations: 300 kB / 0.672 GB, free: 26.38 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 355 * 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 (692): * Single equations (assignments): 686 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (14,54,45.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008196/1.229, allocations: 3.927 MB / 0.6758 GB, free: 22.43 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001447/1.23, allocations: 450.4 kB / 0.6762 GB, free: 21.99 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01201/1.242, allocations: 6.82 MB / 0.6829 GB, free: 15.12 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008786/1.251, allocations: 5.628 MB / 0.6884 GB, free: 9.461 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.362e-05/1.251, allocations: 12 kB / 0.6884 GB, free: 9.449 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.426e-05/1.251, allocations: 19.94 kB / 0.6884 GB, free: 9.43 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03497/1.286, allocations: 15.53 MB / 0.7036 GB, free: 9.816 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.066e-05/1.286, allocations: 4.594 kB / 0.7036 GB, free: 9.812 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00371/1.29, allocations: 0.667 MB / 0.7042 GB, free: 9.145 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003772/1.294, allocations: 1.274 MB / 0.7055 GB, free: 7.867 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007961/1.295, allocations: 91.97 kB / 0.7056 GB, free: 7.777 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2128/1.508, allocations: 11.44 MB / 0.7167 GB, free: 146.8 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.232e-06/1.508, allocations: 8.594 kB / 0.7168 GB, free: 146.8 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01855/1.526, allocations: 10.09 MB / 0.7266 GB, free: 145.1 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003516/1.53, allocations: 1.023 MB / 0.7276 GB, free: 144.7 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001356/1.531, allocations: 77.44 kB / 0.7277 GB, free: 144.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002721/1.534, allocations: 217.6 kB / 0.7279 GB, free: 144.6 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007324/1.535, allocations: 272.8 kB / 0.7282 GB, free: 144.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002498/1.535, allocations: 119.1 kB / 0.7283 GB, free: 144.6 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004981/1.54, allocations: 3.228 MB / 0.7314 GB, free: 143.4 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.2e-07/1.54, allocations: 0 / 0.7314 GB, free: 143.4 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006272/1.546, allocations: 1.698 MB / 0.7331 GB, free: 143.2 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 4 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,PIQS.x) * 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 (336): * Single equations (assignments): 330 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (14,54,45.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01484/1.561, allocations: 11.07 MB / 0.7439 GB, free: 138.2 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.02427/1.585, allocations: 12.34 MB / 0.7559 GB, free: 134 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.887e-06/1.585, allocations: 0 / 0.7559 GB, free: 134 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005841/1.591, allocations: 3.608 MB / 0.7595 GB, free: 130.9 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004843/1.596, allocations: 1.032 MB / 0.7605 GB, free: 130 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1266/1.723, allocations: 75.68 MB / 0.8344 GB, free: 51.4 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009814/1.732, allocations: 6.567 MB / 0.8408 GB, free: 44.79 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006989/1.74, allocations: 2.102 MB / 0.8428 GB, free: 42.68 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005914/1.745, allocations: 3.542 MB / 0.8463 GB, free: 39.14 MB / 462.1 MB Notification: Performance of SimCode: time 1.783e-06/1.745, allocations: 0 / 0.8463 GB, free: 39.14 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3633/2.109, allocations: 137 MB / 0.9801 GB, free: 81.02 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001702/2.109, allocations: 327.3 kB / 0.9804 GB, free: 80.64 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.68/6.789, allocations: 3.953 kB / 0.9804 GB, free: 80.64 MB / 462.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_withLosses/IMC_withLosses.csv","../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches