Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.004831/0.004831, allocations: 111.6 kB / 21.97 MB, free: 5.246 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001322/0.001322, allocations: 206.5 kB / 25.27 MB, free: 3.234 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.293/1.293, allocations: 207.6 MB / 236 MB, free: 9.984 MB / 190.1 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001654/0.001654, allocations: 51.92 kB / 348 MB, free: 10.01 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2186/0.2202, allocations: 49.16 MB / 397.1 MB, free: 8.965 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter): time 0.009302/0.2295, allocations: 10.37 MB / 407.5 MB, free: 1.645 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006127/0.2356, allocations: 3.501 MB / 411 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001448/0.2371, allocations: 66.75 kB / 411.1 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002091/0.2392, allocations: 0.825 MB / 411.9 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003112/0.2423, allocations: 0.8938 MB / 412.8 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001281/0.2436, allocations: 441.3 kB / 413.2 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003836/0.2474, allocations: 2.763 MB / 416 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002027/0.2494, allocations: 1.332 MB / 417.3 MB, free: 11.35 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002027/0.2515, allocations: 1.282 MB / 418.6 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002668/0.2541, allocations: 1.618 MB / 420.2 MB, free: 9.523 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006411/0.2548, allocations: 335.2 kB / 420.6 MB, free: 9.523 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001126/0.2559, allocations: 447.5 kB / 421 MB, free: 9.461 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001014/0.2569, allocations: 0.9471 MB / 421.9 MB, free: 8.75 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001886/0.2588, allocations: 1.51 MB / 423.4 MB, free: 7.664 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004956/0.2638, allocations: 4.396 MB / 427.8 MB, free: 4.387 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.2638, allocations: 0 / 427.8 MB, free: 4.387 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2638, allocations: 4 kB / 427.8 MB, free: 4.383 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.813e-05/0.2639, allocations: 0 / 427.8 MB, free: 4.383 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.007056/0.2709, allocations: 3.04 MB / 430.9 MB, free: 1.398 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.66e-05/0.271, allocations: 15.98 kB / 430.9 MB, free: 1.383 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.197e-05/0.271, allocations: 60.61 kB / 431 MB, free: 1.32 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004825/0.2715, allocations: 328.9 kB / 431.3 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008043/0.2723, allocations: 331 kB / 431.6 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002986/0.2753, allocations: 1.465 MB / 433.1 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001419/0.2754, allocations: 164.4 kB / 433.2 MB, free: 14.99 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003886/0.2758, allocations: 223.9 kB / 433.5 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005199/0.281, allocations: 2.909 MB / 436.4 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.418e-05/0.2811, allocations: 12 kB / 436.4 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002181/0.2813, allocations: 88 kB / 436.5 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001296/0.2814, allocations: 112.3 kB / 436.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00451/0.286, allocations: 2.433 MB / 439 MB, free: 9.117 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01462/0.3006, allocations: 8.876 MB / 447.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002172/0.3027, allocations: 1.179 MB / 449.1 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001741/0.3045, allocations: 0.9248 MB / 450 MB, free: 13.84 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002154/0.3047, allocations: 48.97 kB / 450 MB, free: 13.8 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.841e-05/0.3047, allocations: 43.56 kB / 450.1 MB, free: 13.75 MB / 366.1 MB Notification: Performance of pre-optimization done (n=105): time 2.815e-06/0.3047, allocations: 384 / 450.1 MB, free: 13.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=122): time 0.01425/0.319, allocations: 6.051 MB / 456.1 MB, free: 7.668 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.868e-05/0.319, allocations: 64.41 kB / 456.2 MB, free: 7.594 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002323/0.3214, allocations: 1.557 MB / 457.7 MB, free: 6.027 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001273/0.3215, allocations: 49.7 kB / 457.8 MB, free: 5.973 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008569/0.3224, allocations: 1.13 MB / 458.9 MB, free: 4.828 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004247/0.3228, allocations: 456.2 kB / 459.4 MB, free: 4.379 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004449/0.3232, allocations: 271.5 kB / 459.6 MB, free: 4.105 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001234/0.3233, allocations: 305.1 kB / 459.9 MB, free: 3.805 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001222/0.3246, allocations: 0.7066 MB / 460.6 MB, free: 3.098 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001589/0.3262, allocations: 1.143 MB / 461.8 MB, free: 1.77 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002939/0.3291, allocations: 1.964 MB / 463.7 MB, free: 15.62 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.797e-06/0.3291, allocations: 4 kB / 463.7 MB, free: 15.61 MB / 382.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004455/0.3336, allocations: 2.444 MB / 466.2 MB, free: 13.15 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.852e-05/0.3336, allocations: 15.94 kB / 466.2 MB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.961e-05/0.3336, allocations: 12 kB / 466.2 MB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001001/0.3346, allocations: 423.4 kB / 466.6 MB, free: 12.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00127/0.3359, allocations: 351.5 kB / 467 MB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007385/0.3433, allocations: 6.813 MB / 473.8 MB, free: 5.203 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001451/0.3447, allocations: 103.8 kB / 473.9 MB, free: 5.102 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001287/0.3448, allocations: 67.94 kB / 474 MB, free: 5.035 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * 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 (169): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001236/0.3461, allocations: 0.7199 MB / 474.7 MB, free: 4.305 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003446/0.3464, allocations: 178.8 kB / 474.9 MB, free: 4.129 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003824/0.3502, allocations: 2.099 MB / 476.9 MB, free: 2 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.186e-05/0.3503, allocations: 12 kB / 477 MB, free: 1.988 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.004e-05/0.3503, allocations: 4 kB / 477 MB, free: 1.984 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.351e-05/0.3503, allocations: 7.984 kB / 477 MB, free: 1.977 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008188/0.3585, allocations: 4.662 MB / 481.6 MB, free: 13.19 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.01e-05/0.3585, allocations: 4.062 kB / 481.6 MB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009326/0.3594, allocations: 223.7 kB / 481.9 MB, free: 12.96 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00116/0.3606, allocations: 451 kB / 482.3 MB, free: 12.51 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.963e-05/0.3607, allocations: 31.98 kB / 482.3 MB, free: 12.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008517/0.3692, allocations: 8.277 MB / 490.6 MB, free: 3.734 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.031e-05/0.3692, allocations: 7.938 kB / 490.6 MB, free: 3.727 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005234/0.3744, allocations: 3.152 MB / 493.8 MB, free: 0.4961 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009405/0.3754, allocations: 326.7 kB / 494.1 MB, free: 180 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002523/0.3756, allocations: 39.98 kB / 494.1 MB, free: 140 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009/0.3765, allocations: 83.84 kB / 494.2 MB, free: 56 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002434/0.3768, allocations: 112.6 kB / 494.3 MB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.96e-05/0.3769, allocations: 39.98 kB / 494.4 MB, free: 15.91 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001628/0.3785, allocations: 1.066 MB / 495.4 MB, free: 14.84 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3785, allocations: 0 / 495.4 MB, free: 14.84 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001794/0.3803, allocations: 491.9 kB / 495.9 MB, free: 14.36 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],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 (108): * Single equations (assignments): 104 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005611/0.3859, allocations: 3.779 MB / 499.7 MB, free: 10.49 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003769/0.3897, allocations: 2.144 MB / 0.4901 GB, free: 8.305 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 9.808e-06/0.3897, allocations: 8.062 kB / 0.4901 GB, free: 8.297 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002414/0.3921, allocations: 1.411 MB / 0.4914 GB, free: 6.84 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002316/0.3944, allocations: 485.6 kB / 0.4919 GB, free: 6.363 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02881/0.4232, allocations: 17.81 MB / 0.5093 GB, free: 3.816 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001743/0.425, allocations: 1.871 MB / 0.5111 GB, free: 1.914 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001221/0.4262, allocations: 390.8 kB / 0.5115 GB, free: 1.527 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001221/0.4274, allocations: 0.8742 MB / 0.5124 GB, free: 0.6523 MB / 430.1 MB Notification: Performance of SimCode: time 1.122e-06/0.4274, allocations: 0 / 0.5124 GB, free: 0.6523 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09896/0.5264, allocations: 46.72 MB / 0.558 GB, free: 1.805 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.98/14.51, allocations: 15.75 kB / 0.558 GB, free: 1.789 MB / 478.1 MB " [Timeout remaining time 645] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 20.935203606961295]