Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001625/0.001625, allocations: 113.9 kB / 17.33 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002183/0.002183, allocations: 205.8 kB / 18.27 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.422/1.422, allocations: 227.4 MB / 246.4 MB, free: 10.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001174/0.001174, allocations: 64.58 kB / 306.6 MB, free: 0.8477 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08021/0.0814, allocations: 50.54 MB / 357.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.0121/0.09354, allocations: 10.28 MB / 367.4 MB, free: 3.988 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006146/0.09972, allocations: 3.435 MB / 370.8 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001626/0.1014, allocations: 51.75 kB / 370.9 MB, free: 496 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1655/0.2669, allocations: 0.6815 MB / 371.5 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003305/0.2703, allocations: 0.7524 MB / 372.3 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001498/0.2718, allocations: 370.9 kB / 372.7 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004811/0.2766, allocations: 2.748 MB / 375.4 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004155/0.2808, allocations: 2.411 MB / 377.8 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002772/0.2836, allocations: 1.269 MB / 379.1 MB, free: 9.219 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003575/0.2872, allocations: 1.609 MB / 380.7 MB, free: 8.52 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002138/0.2894, allocations: 338 kB / 381 MB, free: 8.516 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003393/0.2928, allocations: 446 kB / 381.5 MB, free: 8.488 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002352/0.2952, allocations: 0.9427 MB / 382.4 MB, free: 7.984 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005555/0.3008, allocations: 1.507 MB / 383.9 MB, free: 7.008 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007959/0.3088, allocations: 4.34 MB / 388.2 MB, free: 5.375 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.3088, allocations: 1.375 kB / 388.3 MB, free: 5.375 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3088, allocations: 0 / 388.3 MB, free: 5.375 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000185/0.309, allocations: 0 / 388.3 MB, free: 5.375 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: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.008459/0.3175, allocations: 3.064 MB / 391.3 MB, free: 3.262 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.546e-05/0.3175, allocations: 8.75 kB / 391.3 MB, free: 3.262 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004708/0.318, allocations: 328.9 kB / 391.6 MB, free: 3.016 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001058/0.3191, allocations: 312.3 kB / 391.9 MB, free: 2.867 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003272/0.3224, allocations: 1.577 MB / 393.5 MB, free: 1.742 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001929/0.3226, allocations: 176.7 kB / 393.7 MB, free: 1.656 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003993/0.323, allocations: 225 kB / 393.9 MB, free: 1.578 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005308/0.3283, allocations: 2.914 MB / 396.8 MB, free: 15.84 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.281e-05/0.3284, allocations: 19.19 kB / 396.9 MB, free: 15.83 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002341/0.3287, allocations: 88.52 kB / 396.9 MB, free: 15.76 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001153/0.3288, allocations: 112.3 kB / 397 MB, free: 15.74 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004468/0.3332, allocations: 2.435 MB / 399.5 MB, free: 14.5 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01717/0.3504, allocations: 9.127 MB / 408.6 MB, free: 5.363 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002608/0.3531, allocations: 1.695 MB / 410.3 MB, free: 3.559 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001862/0.355, allocations: 0.9956 MB / 411.3 MB, free: 2.57 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003018/0.3553, allocations: 203.2 kB / 411.5 MB, free: 2.332 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.256e-05/0.3553, allocations: 48.03 kB / 411.5 MB, free: 2.277 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 3.697e-06/0.3554, allocations: 0 / 411.5 MB, free: 2.277 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01494/0.3703, allocations: 6.579 MB / 418.1 MB, free: 11.54 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.008e-05/0.3704, allocations: 64.41 kB / 418.2 MB, free: 11.47 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002778/0.3732, allocations: 1.573 MB / 419.8 MB, free: 9.887 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001353/0.3733, allocations: 45.7 kB / 419.8 MB, free: 9.836 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000903/0.3743, allocations: 1.103 MB / 420.9 MB, free: 8.719 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005223/0.3748, allocations: 427.9 kB / 421.3 MB, free: 8.305 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005532/0.3753, allocations: 275.3 kB / 421.6 MB, free: 8.031 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.3755, allocations: 305.1 kB / 421.9 MB, free: 7.73 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001345/0.3769, allocations: 0.7105 MB / 422.6 MB, free: 7.02 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001487/0.3784, allocations: 1.144 MB / 423.7 MB, free: 5.699 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003101/0.3815, allocations: 1.967 MB / 425.7 MB, free: 3.551 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.34e-05/0.3815, allocations: 4 kB / 425.7 MB, free: 3.547 MB / 334.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004623/0.3861, allocations: 2.522 MB / 428.2 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.857e-05/0.3862, allocations: 15.94 kB / 428.3 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.615e-05/0.3862, allocations: 15.94 kB / 428.3 MB, free: 0.957 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001012/0.3872, allocations: 423.2 kB / 428.7 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001294/0.3885, allocations: 351.4 kB / 429 MB, free: 192 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00708/0.3956, allocations: 7.131 MB / 436.2 MB, free: 8.641 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001515/0.3972, allocations: 103.8 kB / 436.3 MB, free: 8.539 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000167/0.3974, allocations: 68 kB / 436.3 MB, free: 8.473 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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.001341/0.3987, allocations: 0.7121 MB / 437 MB, free: 7.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004456/0.3992, allocations: 173.8 kB / 437.2 MB, free: 7.578 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003926/0.4031, allocations: 2.197 MB / 439.4 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.161e-05/0.4031, allocations: 12 kB / 439.4 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.274e-05/0.4031, allocations: 11.98 kB / 439.4 MB, free: 5.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.449e-05/0.4032, allocations: 11.92 kB / 439.4 MB, free: 5.309 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008838/0.412, allocations: 4.784 MB / 444.2 MB, free: 416 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.945e-06/0.412, allocations: 4.062 kB / 444.2 MB, free: 412 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009535/0.413, allocations: 223.7 kB / 444.4 MB, free: 188 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001194/0.4142, allocations: 465 kB / 444.9 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001091/0.4143, allocations: 35.98 kB / 444.9 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008001/0.4223, allocations: 8.683 MB / 453.6 MB, free: 6.453 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.504e-06/0.4224, allocations: 15.86 kB / 453.6 MB, free: 6.438 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004905/0.4273, allocations: 3.208 MB / 456.8 MB, free: 3.137 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008515/0.4282, allocations: 402.8 kB / 457.2 MB, free: 2.723 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003688/0.4285, allocations: 32 kB / 457.3 MB, free: 2.691 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001053/0.4296, allocations: 79.91 kB / 457.3 MB, free: 2.613 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002226/0.4298, allocations: 108.7 kB / 457.5 MB, free: 2.508 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.499e-05/0.4299, allocations: 39.98 kB / 457.5 MB, free: 2.469 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0016/0.4315, allocations: 1.067 MB / 458.6 MB, free: 1.406 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4315, allocations: 0 / 458.6 MB, free: 1.406 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001746/0.4333, allocations: 488 kB / 459 MB, free: 0.9297 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (107): * Single equations (assignments): 103 * 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.005295/0.4386, allocations: 3.867 MB / 462.9 MB, free: 12.96 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004841/0.4434, allocations: 2.789 MB / 465.7 MB, free: 10.12 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.4435, allocations: 0 / 465.7 MB, free: 10.12 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002258/0.4457, allocations: 1.478 MB / 467.2 MB, free: 8.59 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002227/0.448, allocations: 486.4 kB / 467.6 MB, free: 8.129 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03392/0.4819, allocations: 20.57 MB / 488.2 MB, free: 2.094 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001841/0.4838, allocations: 1.867 MB / 490.1 MB, free: 196 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001262/0.4851, allocations: 394.8 kB / 490.5 MB, free: 15.8 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001154/0.4862, allocations: 0.8781 MB / 491.3 MB, free: 14.92 MB / 414.1 MB Notification: Performance of SimCode: time 6.71e-07/0.4862, allocations: 0 / 491.3 MB, free: 14.92 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08181/0.568, allocations: 44.15 MB / 0.5229 GB, free: 3.238 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002053/0.5683, allocations: 252.3 kB / 0.5232 GB, free: 2.98 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.853/3.422, allocations: 0 / 0.5232 GB, free: 2.98 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches