Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.is.1.|smpm.is.2.|smpm.idq_dr.1.|smpm.idq_rr.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.is.1.|smpm.is.2.|smpm.idq_dr.1.|smpm.idq_rr.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001124/0.001124, allocations: 104.1 kB / 16.62 MB, free: 6.809 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: 193.8 kB / 17.55 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.432/1.432, allocations: 222.9 MB / 241.2 MB, free: 13.76 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009298/0.0009297, allocations: 39.81 kB / 300.1 MB, free: 6.004 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1035, allocations: 49.44 MB / 349.6 MB, free: 4.547 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01196/0.1155, allocations: 10.24 MB / 359.8 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007344/0.1229, allocations: 3.38 MB / 363.2 MB, free: 6.863 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001775/0.1247, allocations: 51.75 kB / 363.3 MB, free: 6.812 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00191/0.1267, allocations: 0.6799 MB / 363.9 MB, free: 6.129 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00253/0.1293, allocations: 0.7498 MB / 364.7 MB, free: 5.375 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009562/0.1302, allocations: 379.6 kB / 365.1 MB, free: 5.004 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003318/0.1335, allocations: 2.736 MB / 367.8 MB, free: 2.258 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2387/0.3723, allocations: 2.399 MB / 370.2 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004214/0.3765, allocations: 1.263 MB / 371.5 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005244/0.3818, allocations: 1.604 MB / 373.1 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001104/0.3829, allocations: 334.3 kB / 373.4 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001498/0.3845, allocations: 440 kB / 373.8 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001099/0.3856, allocations: 0.9344 MB / 374.7 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001831/0.3874, allocations: 1.509 MB / 376.3 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007082/0.3945, allocations: 4.332 MB / 380.6 MB, free: 10.27 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.379e-05/0.3946, allocations: 4.031 kB / 380.6 MB, free: 10.27 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.857e-06/0.3946, allocations: 1.281 kB / 380.6 MB, free: 10.27 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0003086/0.3949, allocations: 0 / 380.6 MB, free: 10.27 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.01029/0.4052, allocations: 3.052 MB / 383.6 MB, free: 8.613 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.136e-05/0.4053, allocations: 11.38 kB / 383.7 MB, free: 8.613 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001218/0.4065, allocations: 312.6 kB / 384 MB, free: 8.465 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003222/0.4097, allocations: 1.574 MB / 385.5 MB, free: 7.613 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001651/0.4099, allocations: 173.1 kB / 385.7 MB, free: 7.539 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004157/0.4103, allocations: 225 kB / 385.9 MB, free: 7.461 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006291/0.4166, allocations: 2.921 MB / 388.8 MB, free: 5.793 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.081e-05/0.4167, allocations: 5.562 kB / 388.9 MB, free: 5.793 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002315/0.417, allocations: 90.91 kB / 388.9 MB, free: 5.723 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001412/0.4171, allocations: 112.2 kB / 389.1 MB, free: 5.703 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004174/0.4213, allocations: 2.431 MB / 391.5 MB, free: 4.465 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01451/0.4358, allocations: 9.111 MB / 400.6 MB, free: 14.04 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002559/0.4384, allocations: 1.699 MB / 402.3 MB, free: 12.85 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001765/0.4402, allocations: 0.9957 MB / 403.3 MB, free: 12.33 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003475/0.4406, allocations: 210.2 kB / 403.5 MB, free: 12.09 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.39e-05/0.4407, allocations: 46.19 kB / 403.5 MB, free: 12.04 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 3.586e-06/0.4407, allocations: 0 / 403.5 MB, free: 12.04 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01466/0.4553, allocations: 6.551 MB / 410.1 MB, free: 5.352 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.799e-05/0.4554, allocations: 72.34 kB / 410.2 MB, free: 5.27 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002403/0.4578, allocations: 1.565 MB / 411.7 MB, free: 3.695 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.843e-05/0.4579, allocations: 45.7 kB / 411.8 MB, free: 3.645 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007828/0.4587, allocations: 1.117 MB / 412.9 MB, free: 2.52 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003185/0.459, allocations: 422.7 kB / 413.3 MB, free: 2.109 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000457/0.4595, allocations: 275.3 kB / 413.6 MB, free: 1.836 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.4596, allocations: 305.1 kB / 413.9 MB, free: 1.535 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001215/0.4609, allocations: 0.7131 MB / 414.6 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001588/0.4625, allocations: 1.132 MB / 415.7 MB, free: 15.52 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002942/0.4654, allocations: 1.967 MB / 417.7 MB, free: 13.41 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.176e-05/0.4655, allocations: 4 kB / 417.7 MB, free: 13.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004626/0.4701, allocations: 2.522 MB / 420.2 MB, free: 10.94 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.291e-05/0.4701, allocations: 15.94 kB / 420.2 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.076e-05/0.4702, allocations: 12 kB / 420.2 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001016/0.4712, allocations: 428.9 kB / 420.6 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001263/0.4725, allocations: 352.8 kB / 421 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00683/0.4793, allocations: 7.131 MB / 428.1 MB, free: 2.648 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001813/0.4811, allocations: 103.8 kB / 428.2 MB, free: 2.547 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001243/0.4813, allocations: 67.98 kB / 428.3 MB, free: 2.48 MB / 334.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.001405/0.4827, allocations: 0.7211 MB / 429 MB, free: 1.77 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003555/0.4831, allocations: 172.6 kB / 429.2 MB, free: 1.602 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003892/0.487, allocations: 2.191 MB / 431.4 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-05/0.487, allocations: 15.84 kB / 431.4 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.428e-05/0.487, allocations: 7.984 kB / 431.4 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.894e-05/0.487, allocations: 7.969 kB / 431.4 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0132/0.5003, allocations: 4.793 MB / 436.2 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.634e-05/0.5003, allocations: 4 kB / 436.2 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001607/0.5019, allocations: 214.8 kB / 436.4 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001927/0.5039, allocations: 466.6 kB / 436.9 MB, free: 9.816 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001519/0.504, allocations: 35.98 kB / 436.9 MB, free: 9.781 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01281/0.5169, allocations: 8.691 MB / 445.6 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.06e-05/0.5169, allocations: 6.438 kB / 445.6 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01093/0.5279, allocations: 3.217 MB / 448.8 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001835/0.5298, allocations: 406.7 kB / 449.2 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004752/0.5303, allocations: 31.98 kB / 449.2 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001798/0.5321, allocations: 83.91 kB / 449.3 MB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004472/0.5325, allocations: 96.38 kB / 449.4 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001652/0.5327, allocations: 39.98 kB / 449.5 MB, free: 12.61 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003029/0.5358, allocations: 1.066 MB / 450.5 MB, free: 11.55 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.52e-07/0.5358, allocations: 0 / 450.5 MB, free: 11.55 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003865/0.5397, allocations: 488 kB / 451 MB, free: 11.07 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.0007521/0.5404, allocations: 202.3 kB / 451.2 MB, free: 10.88 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.009572/0.55, allocations: 2.788 MB / 454 MB, free: 8.094 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.213e-05/0.5501, allocations: 0 / 454 MB, free: 8.094 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004652/0.5548, allocations: 1.49 MB / 455.5 MB, free: 6.586 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005557/0.5604, allocations: 468.9 kB / 455.9 MB, free: 6.133 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01842/0.5788, allocations: 5.704 MB / 461.6 MB, free: 392 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003543/0.5824, allocations: 1.871 MB / 463.5 MB, free: 14.48 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003116/0.5856, allocations: 386.9 kB / 463.9 MB, free: 14.1 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008346/0.5864, allocations: 123.4 kB / 464 MB, free: 13.98 MB / 382.1 MB Notification: Performance of SimCode: time 1.072e-06/0.5865, allocations: 0 / 464 MB, free: 13.98 MB / 382.1 MB Notification: Performance of Templates: time 0.08419/0.6707, allocations: 26.29 MB / 490.3 MB, free: 4.027 MB / 398.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches