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.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.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter",fmuType="me",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="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.00175/0.00175, allocations: 102.5 kB / 17.73 MB, free: 5.371 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.002245/0.002245, allocations: 191 kB / 18.66 MB, free: 4.445 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.313/1.313, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001231/0.001232, allocations: 51.92 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07553/0.07677, allocations: 46.61 MB / 374.6 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter): time 0.1658/0.2426, allocations: 10.27 MB / 384.9 MB, free: 7.73 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005978/0.2486, allocations: 3.482 MB / 388.4 MB, free: 5.781 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00175/0.2504, allocations: 46.38 kB / 388.4 MB, free: 5.77 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002165/0.2526, allocations: 0.7729 MB / 389.2 MB, free: 5.355 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002902/0.2555, allocations: 0.8291 MB / 390 MB, free: 4.82 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001124/0.2567, allocations: 424 kB / 390.5 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003185/0.2599, allocations: 2.76 MB / 393.2 MB, free: 3.172 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002358/0.2622, allocations: 2.366 MB / 395.6 MB, free: 2.176 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001764/0.264, allocations: 1.261 MB / 396.8 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002284/0.2663, allocations: 1.575 MB / 398.4 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005686/0.2669, allocations: 335 kB / 398.8 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001044/0.268, allocations: 441.5 kB / 399.2 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000893/0.2689, allocations: 0.9356 MB / 400.1 MB, free: 284 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002095/0.271, allocations: 1.508 MB / 401.6 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004805/0.2758, allocations: 4.38 MB / 406 MB, free: 12.75 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.2758, allocations: 4 kB / 406 MB, free: 12.74 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.2758, allocations: 1.406 kB / 406 MB, free: 12.74 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.63e-05/0.2759, allocations: 0 / 406 MB, free: 12.74 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.006832/0.2828, allocations: 3.054 MB / 409.1 MB, free: 10.62 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.698e-05/0.2828, allocations: 9.625 kB / 409.1 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004689/0.2833, allocations: 331.8 kB / 409.4 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008407/0.2842, allocations: 310.8 kB / 409.7 MB, free: 10.22 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003/0.2872, allocations: 1.533 MB / 411.2 MB, free: 9.105 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001329/0.2873, allocations: 169.9 kB / 411.4 MB, free: 9.023 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000363/0.2877, allocations: 224 kB / 411.6 MB, free: 8.945 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004822/0.2925, allocations: 2.915 MB / 414.5 MB, free: 7.203 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.876e-05/0.2926, allocations: 2.594 kB / 414.5 MB, free: 7.203 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002217/0.2928, allocations: 87.59 kB / 414.6 MB, free: 7.137 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001202/0.293, allocations: 114.6 kB / 414.7 MB, free: 7.113 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004251/0.2972, allocations: 2.431 MB / 417.2 MB, free: 5.242 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01419/0.3114, allocations: 9.016 MB / 426.2 MB, free: 11.94 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002287/0.3137, allocations: 1.695 MB / 427.9 MB, free: 10.13 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001752/0.3155, allocations: 0.9844 MB / 428.9 MB, free: 9.145 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002913/0.3158, allocations: 207.2 kB / 429.1 MB, free: 8.906 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.261e-05/0.3159, allocations: 47.5 kB / 429.1 MB, free: 8.848 MB / 350.1 MB Notification: Performance of pre-optimization done (n=105): time 3.146e-06/0.3159, allocations: 0 / 429.1 MB, free: 8.848 MB / 350.1 MB Notification: Performance of matching and sorting (n=122): time 0.01418/0.3301, allocations: 6.528 MB / 435.6 MB, free: 2.152 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.037e-05/0.3301, allocations: 68.34 kB / 435.7 MB, free: 2.074 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002314/0.3325, allocations: 1.569 MB / 437.3 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001265/0.3326, allocations: 45.7 kB / 437.3 MB, free: 456 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00081/0.3334, allocations: 1.108 MB / 438.4 MB, free: 15.32 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003809/0.3338, allocations: 433.8 kB / 438.9 MB, free: 14.89 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004333/0.3343, allocations: 275.4 kB / 439.1 MB, free: 14.61 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.79e-05/0.3344, allocations: 305.1 kB / 439.4 MB, free: 14.31 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001207/0.3356, allocations: 0.6988 MB / 440.1 MB, free: 13.61 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001441/0.337, allocations: 1.143 MB / 441.3 MB, free: 12.29 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002745/0.3398, allocations: 1.968 MB / 443.2 MB, free: 10.14 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.705e-06/0.3398, allocations: 4 kB / 443.2 MB, free: 10.13 MB / 366.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004579/0.3444, allocations: 2.518 MB / 445.7 MB, free: 7.574 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.028e-05/0.3445, allocations: 12 kB / 445.8 MB, free: 7.562 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.956e-05/0.3445, allocations: 12 kB / 445.8 MB, free: 7.551 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009971/0.3455, allocations: 424 kB / 446.2 MB, free: 7.125 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001292/0.3468, allocations: 347.4 kB / 446.5 MB, free: 6.785 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007144/0.3539, allocations: 7.118 MB / 453.6 MB, free: 15.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001541/0.3555, allocations: 107.8 kB / 453.7 MB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001443/0.3557, allocations: 64 kB / 453.8 MB, free: 15.08 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.001373/0.3571, allocations: 0.7244 MB / 454.5 MB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003537/0.3574, allocations: 173.8 kB / 454.7 MB, free: 14.17 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003785/0.3612, allocations: 2.19 MB / 456.9 MB, free: 11.94 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.106e-05/0.3612, allocations: 12 kB / 456.9 MB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.3613, allocations: 4 kB / 456.9 MB, free: 11.92 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.324e-05/0.3613, allocations: 7.922 kB / 456.9 MB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00821/0.3695, allocations: 4.773 MB / 461.7 MB, free: 6.988 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.305e-06/0.3695, allocations: 8.531 kB / 461.7 MB, free: 6.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009727/0.3705, allocations: 223.7 kB / 461.9 MB, free: 6.762 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001182/0.3717, allocations: 455.1 kB / 462.4 MB, free: 6.305 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.639e-05/0.3718, allocations: 35.98 kB / 462.4 MB, free: 6.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008067/0.3799, allocations: 8.662 MB / 471.1 MB, free: 13.04 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.554e-06/0.3799, allocations: 11.98 kB / 471.1 MB, free: 13.03 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005086/0.385, allocations: 3.226 MB / 474.3 MB, free: 9.707 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001029/0.3861, allocations: 390.9 kB / 474.7 MB, free: 9.305 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000283/0.3864, allocations: 43.92 kB / 474.7 MB, free: 9.262 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009549/0.3873, allocations: 79.91 kB / 474.8 MB, free: 9.184 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002335/0.3876, allocations: 108.7 kB / 474.9 MB, free: 9.074 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.427e-05/0.3877, allocations: 36 kB / 474.9 MB, free: 9.039 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001523/0.3892, allocations: 1.063 MB / 476 MB, free: 7.98 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3892, allocations: 0 / 476 MB, free: 7.98 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001728/0.3909, allocations: 492 kB / 476.5 MB, free: 7.5 MB / 398.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.005384/0.3963, allocations: 3.867 MB / 480.4 MB, free: 3.523 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003755/0.4001, allocations: 2.294 MB / 482.6 MB, free: 1.168 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.93e-06/0.4001, allocations: 0 / 482.6 MB, free: 1.168 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002384/0.4025, allocations: 1.477 MB / 484.1 MB, free: 15.64 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002471/0.405, allocations: 488.4 kB / 484.6 MB, free: 15.16 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02847/0.4335, allocations: 17.86 MB / 0.4907 GB, free: 12.55 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001946/0.4355, allocations: 1.875 MB / 0.4925 GB, free: 10.64 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001202/0.4367, allocations: 390.8 kB / 0.4929 GB, free: 10.25 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001228/0.4379, allocations: 0.8742 MB / 0.4937 GB, free: 9.379 MB / 430.1 MB Notification: Performance of SimCode: time 5.21e-07/0.438, allocations: 0 / 0.4937 GB, free: 9.379 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08604/0.524, allocations: 45.66 MB / 0.5383 GB, free: 11.59 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.33/12.85, allocations: 11.98 kB / 0.5383 GB, free: 11.57 MB / 478.1 MB (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 --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) 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) Reference file matches