Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.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.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_Inverter",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.001175/0.001175, allocations: 114.4 kB / 17.74 MB, free: 5.355 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.001191/0.001191, allocations: 183.1 kB / 18.66 MB, free: 4.434 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.28/1.28, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001112/0.001112, allocations: 55.92 kB / 328 MB, free: 3.809 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08544/0.08656, allocations: 46.62 MB / 374.7 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter): time 0.1747/0.2613, allocations: 9.584 MB / 384.2 MB, free: 8.16 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005696/0.2671, allocations: 3.16 MB / 387.4 MB, free: 6.5 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001693/0.2688, allocations: 53.78 kB / 387.5 MB, free: 6.48 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002176/0.271, allocations: 0.6975 MB / 388.2 MB, free: 6.098 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003228/0.2743, allocations: 0.7978 MB / 388.9 MB, free: 5.586 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001131/0.2754, allocations: 396.7 kB / 389.3 MB, free: 5.344 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003386/0.2788, allocations: 2.556 MB / 391.9 MB, free: 4.059 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002466/0.2813, allocations: 2.293 MB / 394.2 MB, free: 3.094 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001863/0.2832, allocations: 1.177 MB / 395.4 MB, free: 2.527 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002201/0.2854, allocations: 1.499 MB / 396.9 MB, free: 1.824 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005287/0.2859, allocations: 322.3 kB / 397.2 MB, free: 1.82 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009655/0.2869, allocations: 416.2 kB / 397.6 MB, free: 1.793 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007566/0.2877, allocations: 0.8981 MB / 398.5 MB, free: 1.305 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001355/0.289, allocations: 1.416 MB / 399.9 MB, free: 388 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004531/0.2936, allocations: 4.161 MB / 404.1 MB, free: 14.19 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.2936, allocations: 4 kB / 404.1 MB, free: 14.19 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2936, allocations: 1.031 kB / 404.1 MB, free: 14.19 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.217e-05/0.2937, allocations: 0 / 404.1 MB, free: 14.19 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: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.006036/0.2998, allocations: 2.97 MB / 407 MB, free: 12.11 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.2998, allocations: 9.906 kB / 407 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003938/0.3002, allocations: 308.9 kB / 407.3 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007613/0.301, allocations: 302.3 kB / 407.6 MB, free: 11.72 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002531/0.3035, allocations: 1.458 MB / 409.1 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001242/0.3037, allocations: 160.9 kB / 409.3 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003125/0.304, allocations: 215.8 kB / 409.5 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004407/0.3084, allocations: 2.796 MB / 412.3 MB, free: 8.824 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.851e-05/0.3085, allocations: 10.59 kB / 412.3 MB, free: 8.816 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001966/0.3087, allocations: 91.19 kB / 412.4 MB, free: 8.746 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.838e-05/0.3088, allocations: 103.2 kB / 412.5 MB, free: 8.727 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003838/0.3126, allocations: 2.343 MB / 414.8 MB, free: 7.527 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01267/0.3253, allocations: 8.525 MB / 423.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002238/0.3276, allocations: 1.703 MB / 425 MB, free: 13.03 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001597/0.3292, allocations: 0.9489 MB / 426 MB, free: 12.08 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000258/0.3295, allocations: 211.2 kB / 426.2 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.249e-05/0.3295, allocations: 47.5 kB / 426.2 MB, free: 11.78 MB / 350.1 MB Notification: Performance of pre-optimization done (n=101): time 3.367e-06/0.3295, allocations: 4 kB / 426.2 MB, free: 11.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=116): time 0.01283/0.3424, allocations: 6.146 MB / 432.4 MB, free: 5.492 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.426e-05/0.3425, allocations: 64.41 kB / 432.4 MB, free: 5.418 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002113/0.3446, allocations: 1.437 MB / 433.9 MB, free: 3.969 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.396e-05/0.3447, allocations: 45.7 kB / 433.9 MB, free: 3.918 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007145/0.3454, allocations: 1.068 MB / 435 MB, free: 2.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002991/0.3457, allocations: 428.3 kB / 435.4 MB, free: 2.418 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003892/0.3461, allocations: 255.5 kB / 435.7 MB, free: 2.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000142/0.3463, allocations: 365.9 kB / 436 MB, free: 1.797 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001071/0.3473, allocations: 0.6754 MB / 436.7 MB, free: 1.121 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001244/0.3486, allocations: 1.074 MB / 437.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002379/0.351, allocations: 1.86 MB / 439.6 MB, free: 13.86 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.542e-06/0.351, allocations: 7.938 kB / 439.6 MB, free: 13.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003825/0.3548, allocations: 2.418 MB / 442.1 MB, free: 11.39 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.548e-05/0.3549, allocations: 12 kB / 442.1 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.053e-05/0.3549, allocations: 12 kB / 442.1 MB, free: 11.37 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009234/0.3558, allocations: 420.1 kB / 442.5 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001153/0.357, allocations: 331.5 kB / 442.8 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006229/0.3632, allocations: 7.049 MB / 449.9 MB, free: 3.156 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001345/0.3646, allocations: 99.89 kB / 450 MB, free: 3.059 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000103/0.3647, allocations: 59.98 kB / 450 MB, free: 3 MB / 366.1 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 (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,11,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.001124/0.3658, allocations: 0.6931 MB / 450.7 MB, free: 2.297 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002814/0.3661, allocations: 171 kB / 450.9 MB, free: 2.129 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003413/0.3695, allocations: 2.115 MB / 453 MB, free: 15.97 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/0.3696, allocations: 8 kB / 453 MB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.3696, allocations: 8 kB / 453 MB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.014e-05/0.3696, allocations: 7.984 kB / 453 MB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007054/0.3767, allocations: 4.561 MB / 457.6 MB, free: 11.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.674e-06/0.3767, allocations: 7.938 kB / 457.6 MB, free: 11.24 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008789/0.3776, allocations: 211.7 kB / 457.8 MB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001054/0.3786, allocations: 443.3 kB / 458.2 MB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.974e-05/0.3787, allocations: 31.98 kB / 458.3 MB, free: 10.56 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007262/0.386, allocations: 8.629 MB / 466.9 MB, free: 1.367 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/0.386, allocations: 7.938 kB / 466.9 MB, free: 1.359 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004564/0.3906, allocations: 3.115 MB / 470 MB, free: 14.14 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000906/0.3915, allocations: 391.9 kB / 470.4 MB, free: 13.74 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000238/0.3918, allocations: 31.98 kB / 470.4 MB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008754/0.3927, allocations: 83.84 kB / 470.5 MB, free: 13.63 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002083/0.3929, allocations: 96.81 kB / 470.6 MB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.388e-05/0.393, allocations: 39.98 kB / 470.6 MB, free: 13.5 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001372/0.3943, allocations: 0.9809 MB / 471.6 MB, free: 12.52 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.312e-06/0.3943, allocations: 4 kB / 471.6 MB, free: 12.51 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001577/0.3959, allocations: 467.8 kB / 472.1 MB, free: 12.05 MB / 398.1 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 (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,11,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.004993/0.4009, allocations: 3.746 MB / 475.8 MB, free: 8.199 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003565/0.4045, allocations: 2.221 MB / 478 MB, free: 5.922 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.712e-06/0.4045, allocations: 2 kB / 478 MB, free: 5.922 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002315/0.4069, allocations: 1.446 MB / 479.5 MB, free: 4.426 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00231/0.4092, allocations: 431.8 kB / 479.9 MB, free: 4.012 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0247/0.4339, allocations: 16.94 MB / 496.9 MB, free: 2.355 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001686/0.4356, allocations: 1.807 MB / 498.7 MB, free: 0.5156 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001052/0.4367, allocations: 365.5 kB / 499 MB, free: 156 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00108/0.4378, allocations: 0.8157 MB / 499.8 MB, free: 15.33 MB / 430.1 MB Notification: Performance of SimCode: time 9.01e-07/0.4378, allocations: 4 kB / 499.8 MB, free: 15.33 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1119/0.5497, allocations: 41.83 MB / 0.529 GB, free: 5.375 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.97/12.52, allocations: 8.25 kB / 0.529 GB, free: 5.363 MB / 462.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_Inverter.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches