Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smee.is.1.|smee.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smee.is.1.|smee.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008841/0.0008842, allocations: 179.5 kB / 16.41 MB, free: 5.703 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.492/1.492, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.0007189/0.0007189, allocations: 86.36 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002609/0.000261, allocations: 12 kB / 327 MB, free: 188 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2111/0.2114, allocations: 47.57 MB / 374.6 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter): time 0.00737/0.2188, allocations: 8.459 MB / 383 MB, free: 38.83 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005086/0.2239, allocations: 2.956 MB / 386 MB, free: 36.38 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008906/0.2249, allocations: 44.19 kB / 386 MB, free: 36.36 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001127/0.226, allocations: 0.5346 MB / 386.6 MB, free: 35.97 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001395/0.2274, allocations: 0.6435 MB / 387.2 MB, free: 35.44 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005537/0.228, allocations: 254 kB / 387.4 MB, free: 35.23 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002064/0.23, allocations: 2.596 MB / 390 MB, free: 33.32 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001307/0.2314, allocations: 1.494 MB / 391.5 MB, free: 31.79 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009581/0.2323, allocations: 0.8832 MB / 392.4 MB, free: 30.91 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00108/0.2334, allocations: 1.222 MB / 393.6 MB, free: 29.68 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002024/0.2336, allocations: 136 kB / 393.8 MB, free: 29.55 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004485/0.2341, allocations: 211.8 kB / 394 MB, free: 29.34 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000422/0.2345, allocations: 0.6737 MB / 394.7 MB, free: 28.66 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002997/0.2348, allocations: 0.4887 MB / 395.1 MB, free: 28.17 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001851/0.2367, allocations: 3.327 MB / 398.5 MB, free: 24.83 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.2367, allocations: 0 / 398.5 MB, free: 24.83 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2367, allocations: 4 kB / 398.5 MB, free: 24.83 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.755e-05/0.2368, allocations: 0 / 398.5 MB, free: 24.83 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.003704/0.2405, allocations: 2.487 MB / 401 MB, free: 22.28 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.2405, allocations: 11.97 kB / 401 MB, free: 22.27 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005414/0.2411, allocations: 296.7 kB / 401.3 MB, free: 21.97 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001724/0.2428, allocations: 1.382 MB / 402.6 MB, free: 20.53 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001129/0.2429, allocations: 172.2 kB / 402.8 MB, free: 20.36 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002398/0.2432, allocations: 207.9 kB / 403 MB, free: 20.16 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003632/0.2468, allocations: 2.792 MB / 405.8 MB, free: 17.28 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.542e-05/0.2469, allocations: 7.984 kB / 405.8 MB, free: 17.27 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001656/0.247, allocations: 84 kB / 405.9 MB, free: 17.19 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.306e-05/0.2471, allocations: 112.1 kB / 406 MB, free: 17.07 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003144/0.2503, allocations: 2.355 MB / 408.4 MB, free: 14.7 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00977/0.2601, allocations: 8.636 MB / 417 MB, free: 5.82 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001877/0.262, allocations: 1.711 MB / 418.7 MB, free: 3.992 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001369/0.2634, allocations: 0.98 MB / 419.7 MB, free: 3.012 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002207/0.2636, allocations: 207.2 kB / 419.9 MB, free: 2.77 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.074e-05/0.2636, allocations: 47.5 kB / 419.9 MB, free: 2.715 MB / 298.7 MB Notification: Performance of pre-optimization done (n=101): time 2.946e-06/0.2636, allocations: 0 / 419.9 MB, free: 2.715 MB / 298.7 MB Notification: Performance of matching and sorting (n=116): time 0.01166/0.2753, allocations: 6.202 MB / 426.1 MB, free: 12.38 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.61e-05/0.2754, allocations: 64.41 kB / 426.2 MB, free: 12.3 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001905/0.2773, allocations: 1.429 MB / 427.6 MB, free: 10.86 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.632e-05/0.2774, allocations: 45.7 kB / 427.7 MB, free: 10.8 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006865/0.2781, allocations: 1.037 MB / 428.7 MB, free: 9.754 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002958/0.2784, allocations: 410.1 kB / 429.1 MB, free: 9.348 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.756e-05/0.2785, allocations: 24 kB / 429.1 MB, free: 9.324 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.2786, allocations: 369.9 kB / 429.5 MB, free: 8.957 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001083/0.2797, allocations: 0.691 MB / 430.2 MB, free: 8.266 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001275/0.281, allocations: 1.074 MB / 431.3 MB, free: 7.027 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001305/0.2823, allocations: 0.8578 MB / 432.1 MB, free: 6.172 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.414e-06/0.2823, allocations: 4 kB / 432.1 MB, free: 6.168 MB / 314.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003757/0.2861, allocations: 2.402 MB / 434.5 MB, free: 3.723 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.705e-05/0.2861, allocations: 12 kB / 434.5 MB, free: 3.711 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.852e-05/0.2862, allocations: 16.23 kB / 434.6 MB, free: 3.695 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000962/0.2871, allocations: 419 kB / 435 MB, free: 3.273 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001197/0.2883, allocations: 335.5 kB / 435.3 MB, free: 2.945 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006149/0.2945, allocations: 6.463 MB / 441.8 MB, free: 12.08 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001397/0.2959, allocations: 103.9 kB / 441.9 MB, free: 11.98 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000104/0.296, allocations: 60 kB / 441.9 MB, free: 11.92 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (157): * Single equations (assignments): 153 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 11,(1,100.0%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001233/0.2973, allocations: 0.6886 MB / 442.6 MB, free: 11.22 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002534/0.2975, allocations: 169.9 kB / 442.8 MB, free: 11.05 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00352/0.3011, allocations: 2.138 MB / 444.9 MB, free: 8.867 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.047e-05/0.3011, allocations: 12 kB / 444.9 MB, free: 8.855 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.215e-06/0.3011, allocations: 8 kB / 444.9 MB, free: 8.848 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.379e-05/0.3011, allocations: 7.969 kB / 444.9 MB, free: 8.84 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007006/0.3081, allocations: 4.593 MB / 449.5 MB, free: 4.109 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.774e-06/0.3082, allocations: 4 kB / 449.5 MB, free: 4.105 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009118/0.3091, allocations: 224.1 kB / 449.7 MB, free: 3.887 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001119/0.3102, allocations: 450.2 kB / 450.2 MB, free: 3.438 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.379e-05/0.3103, allocations: 31.98 kB / 450.2 MB, free: 3.406 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007378/0.3177, allocations: 7.916 MB / 458.1 MB, free: 10.96 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.422e-06/0.3178, allocations: 4 kB / 458.1 MB, free: 10.95 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005144/0.3229, allocations: 3.121 MB / 461.3 MB, free: 7.734 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009637/0.3239, allocations: 391 kB / 461.6 MB, free: 7.332 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001989/0.3241, allocations: 28 kB / 461.7 MB, free: 7.305 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009041/0.325, allocations: 87.91 kB / 461.8 MB, free: 7.219 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000214/0.3253, allocations: 100.8 kB / 461.9 MB, free: 7.121 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.562e-05/0.3253, allocations: 36 kB / 461.9 MB, free: 7.086 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001404/0.3267, allocations: 0.9808 MB / 462.9 MB, free: 6.105 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3268, allocations: 0 / 462.9 MB, free: 6.105 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001584/0.3283, allocations: 464.1 kB / 463.3 MB, free: 5.652 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],vfController.x,loadInertia.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 (103): * Single equations (assignments): 99 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,100.0%) 11,(1,100.0%) 6,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003407/0.3287, allocations: 151 kB / 463.5 MB, free: 5.496 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003655/0.3324, allocations: 2.225 MB / 465.7 MB, free: 3.211 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.558e-06/0.3324, allocations: 3.938 kB / 465.7 MB, free: 3.207 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002337/0.3347, allocations: 1.451 MB / 467.1 MB, free: 1.707 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00226/0.337, allocations: 413.8 kB / 467.6 MB, free: 1.309 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008174/0.3452, allocations: 5.379 MB / 472.9 MB, free: 11.85 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001516/0.3467, allocations: 1.784 MB / 474.7 MB, free: 10.04 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005475/0.3473, allocations: 123.4 kB / 474.8 MB, free: 9.914 MB / 362.7 MB Notification: Performance of SimCode: time 1.133e-06/0.3473, allocations: 4 kB / 474.8 MB, free: 9.91 MB / 362.7 MB Notification: Performance of Templates: time 0.2406/0.5879, allocations: 68.59 MB / 0.5307 GB, free: 75.61 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/SMR_Inverter/SMR_Inverter.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches