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.001235/0.001235, allocations: 104.5 kB / 17.58 MB, free: 5.562 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.001303/0.001303, allocations: 184.2 kB / 18.5 MB, free: 4.648 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.368/1.368, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.001275/0.001275, allocations: 51.92 kB / 280.8 MB, free: 3.07 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0715/0.07279, allocations: 46.64 MB / 327.4 MB, free: 4.367 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter): time 0.009474/0.08229, allocations: 9.575 MB / 337 MB, free: 10.74 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004612/0.08692, allocations: 3.144 MB / 340.1 MB, free: 7.578 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005297/0.08747, allocations: 47.75 kB / 340.2 MB, free: 7.531 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001184/0.08867, allocations: 0.6753 MB / 340.8 MB, free: 6.852 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001305/0.08999, allocations: 0.7492 MB / 341.6 MB, free: 6.098 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005693/0.09057, allocations: 403.4 kB / 342 MB, free: 5.703 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001841/0.09242, allocations: 2.549 MB / 344.5 MB, free: 3.145 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002005/0.09443, allocations: 2.286 MB / 346.8 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000897/0.09534, allocations: 1.172 MB / 348 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001394/0.09674, allocations: 1.499 MB / 349.5 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003505/0.0971, allocations: 320 kB / 349.8 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005904/0.0977, allocations: 415.8 kB / 350.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006969/0.09841, allocations: 0.9039 MB / 351.1 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001057/0.09948, allocations: 1.412 MB / 352.5 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002741/0.1022, allocations: 4.108 MB / 356.6 MB, free: 6.953 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.1022, allocations: 0 / 356.6 MB, free: 6.953 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1022, allocations: 0 / 356.6 MB, free: 6.953 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.474e-05/0.1023, allocations: 0 / 356.6 MB, free: 6.953 MB / 302.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.004301/0.1066, allocations: 2.889 MB / 359.5 MB, free: 4 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.185e-05/0.1066, allocations: 16.03 kB / 359.5 MB, free: 3.984 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003178/0.1069, allocations: 312.2 kB / 359.8 MB, free: 3.668 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000569/0.1075, allocations: 289.6 kB / 360.1 MB, free: 3.383 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001843/0.1094, allocations: 1.425 MB / 361.5 MB, free: 1.898 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001264/0.1095, allocations: 172.3 kB / 361.7 MB, free: 1.727 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002611/0.1098, allocations: 208 kB / 361.9 MB, free: 1.523 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00367/0.1135, allocations: 2.799 MB / 364.7 MB, free: 14.64 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.374e-05/0.1135, allocations: 11.84 kB / 364.7 MB, free: 14.62 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001729/0.1137, allocations: 87.98 kB / 364.8 MB, free: 14.54 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.543e-05/0.1138, allocations: 108.2 kB / 364.9 MB, free: 14.43 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003381/0.1172, allocations: 2.343 MB / 367.3 MB, free: 12.07 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0104/0.1276, allocations: 8.608 MB / 375.9 MB, free: 3.215 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002096/0.1297, allocations: 1.708 MB / 377.6 MB, free: 1.395 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001499/0.1312, allocations: 0.9675 MB / 378.5 MB, free: 432 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000239/0.1315, allocations: 207.2 kB / 378.7 MB, free: 184 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.55e-05/0.1315, allocations: 51.44 kB / 378.8 MB, free: 124 kB / 318.1 MB Notification: Performance of pre-optimization done (n=101): time 2.474e-06/0.1315, allocations: 0 / 378.8 MB, free: 124 kB / 318.1 MB Notification: Performance of matching and sorting (n=116): time 0.1197/0.2512, allocations: 6.091 MB / 384.9 MB, free: 50.17 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.955e-05/0.2512, allocations: 64.81 kB / 385 MB, free: 50.11 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00189/0.2531, allocations: 1.441 MB / 386.4 MB, free: 49.54 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.331e-05/0.2532, allocations: 50.02 kB / 386.4 MB, free: 49.5 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005009/0.2537, allocations: 1.04 MB / 387.5 MB, free: 48.69 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002079/0.2539, allocations: 405.4 kB / 387.9 MB, free: 48.39 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003248/0.2543, allocations: 252.7 kB / 388.1 MB, free: 48.27 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.112e-05/0.2543, allocations: 362 kB / 388.5 MB, free: 47.94 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009219/0.2553, allocations: 0.6792 MB / 389.2 MB, free: 47.71 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001035/0.2563, allocations: 1.074 MB / 390.2 MB, free: 47 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001916/0.2582, allocations: 1.861 MB / 392.1 MB, free: 45.93 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.981e-06/0.2583, allocations: 3.219 kB / 392.1 MB, free: 45.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003138/0.2614, allocations: 2.405 MB / 394.5 MB, free: 44.93 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/0.2614, allocations: 18.88 kB / 394.5 MB, free: 44.92 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.525e-05/0.2615, allocations: 11 kB / 394.5 MB, free: 44.92 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00077/0.2622, allocations: 414 kB / 394.9 MB, free: 44.79 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001089/0.2633, allocations: 328.2 kB / 395.3 MB, free: 44.76 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005017/0.2684, allocations: 7.039 MB / 402.3 MB, free: 39.14 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00149/0.2699, allocations: 103.6 kB / 402.4 MB, free: 39.09 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001058/0.27, allocations: 62.62 kB / 402.5 MB, free: 39.08 MB / 318.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.0009075/0.2709, allocations: 0.6968 MB / 403.2 MB, free: 38.6 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002189/0.2711, allocations: 156.2 kB / 403.3 MB, free: 38.52 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002721/0.2739, allocations: 2.121 MB / 405.4 MB, free: 37.02 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.693e-06/0.2739, allocations: 12 kB / 405.4 MB, free: 37.01 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.2739, allocations: 4 kB / 405.4 MB, free: 37 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.768e-06/0.2739, allocations: 7.969 kB / 405.4 MB, free: 37 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005085/0.279, allocations: 4.579 MB / 410 MB, free: 32.32 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/0.279, allocations: 4 kB / 410 MB, free: 32.31 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007306/0.2798, allocations: 211.7 kB / 410.2 MB, free: 32.11 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00083/0.2806, allocations: 456.7 kB / 410.7 MB, free: 31.65 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.269e-05/0.2807, allocations: 35.92 kB / 410.7 MB, free: 31.61 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004898/0.2856, allocations: 8.621 MB / 419.3 MB, free: 22.47 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.2856, allocations: 7.938 kB / 419.3 MB, free: 22.46 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003196/0.2888, allocations: 3.105 MB / 422.5 MB, free: 19.26 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004164/0.2892, allocations: 379.1 kB / 422.8 MB, free: 18.87 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001788/0.2894, allocations: 31.94 kB / 422.9 MB, free: 18.84 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007329/0.2901, allocations: 83.91 kB / 422.9 MB, free: 18.76 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001555/0.2903, allocations: 92.81 kB / 423 MB, free: 18.67 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.712e-05/0.2904, allocations: 43.42 kB / 423.1 MB, free: 18.63 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009071/0.2913, allocations: 0.9886 MB / 424.1 MB, free: 17.64 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2913, allocations: 0 / 424.1 MB, free: 17.64 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00119/0.2925, allocations: 462.6 kB / 424.5 MB, free: 17.19 MB / 318.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.00353/0.296, allocations: 3.738 MB / 428.2 MB, free: 13.36 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003279/0.2993, allocations: 2.687 MB / 430.9 MB, free: 10.62 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.2993, allocations: 8.125 kB / 430.9 MB, free: 10.62 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001611/0.3009, allocations: 1.444 MB / 432.4 MB, free: 9.125 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001405/0.3024, allocations: 424.4 kB / 432.8 MB, free: 8.715 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01846/0.3208, allocations: 18.35 MB / 451.2 MB, free: 5.188 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001244/0.3221, allocations: 1.803 MB / 453 MB, free: 3.359 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000873/0.323, allocations: 365.5 kB / 453.3 MB, free: 2.996 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008732/0.3238, allocations: 0.8195 MB / 454.1 MB, free: 2.176 MB / 334.1 MB Notification: Performance of SimCode: time 1.583e-06/0.3239, allocations: 0 / 454.1 MB, free: 2.176 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.559/2.883, allocations: 41 MB / 495.1 MB, free: 9.043 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.26/13.14, allocations: 12.05 kB / 495.1 MB, free: 9.031 MB / 382.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 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.mat","/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