Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.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.SMEE_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|smee.is.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.|smee.inertiaRotor.phi|smee.inertiaRotor.w|smee.lesigma.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|smee.is.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.|smee.inertiaRotor.phi|smee.inertiaRotor.w|smee.lesigma.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007842/0.0007845, allocations: 92.2 kB / 17.31 MB, free: 6.535 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.0008437/0.0008437, allocations: 178.3 kB / 18.21 MB, free: 5.68 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.15/1.15, allocations: 223.3 MB / 242.3 MB, free: 244 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001969/0.000197, allocations: 11.94 kB / 302.1 MB, free: 6.156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0717/0.07191, allocations: 50.41 MB / 352.5 MB, free: 3.734 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL): time 0.009626/0.08157, allocations: 11.13 MB / 363.6 MB, free: 8.543 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005015/0.0866, allocations: 3.854 MB / 367.5 MB, free: 4.676 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006118/0.08723, allocations: 63.69 kB / 367.5 MB, free: 4.613 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001338/0.08857, allocations: 0.7422 MB / 368.3 MB, free: 3.871 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001538/0.09012, allocations: 0.8897 MB / 369.2 MB, free: 2.977 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007287/0.09086, allocations: 467.5 kB / 369.6 MB, free: 2.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1206/0.2115, allocations: 3.841 MB / 373.5 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002784/0.2143, allocations: 2.251 MB / 375.7 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001646/0.216, allocations: 1.164 MB / 376.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002344/0.2183, allocations: 1.636 MB / 378.5 MB, free: 9.723 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003558/0.2187, allocations: 171.8 kB / 378.7 MB, free: 9.723 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000882/0.2196, allocations: 431.6 kB / 379.1 MB, free: 9.723 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007197/0.2203, allocations: 0.8718 MB / 380 MB, free: 9.598 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001201/0.2215, allocations: 1.547 MB / 381.5 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002847/0.2244, allocations: 4.295 MB / 385.8 MB, free: 8.406 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.2244, allocations: 0 / 385.8 MB, free: 8.406 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2244, allocations: 1.031 kB / 385.8 MB, free: 8.406 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.9e-05/0.2244, allocations: 4 kB / 385.8 MB, free: 8.402 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: 701 * Number of variables: 701 Notification: Performance of Generate backend data structure: time 0.004781/0.2292, allocations: 3.156 MB / 389 MB, free: 6.516 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.191e-05/0.2293, allocations: 9.219 kB / 389 MB, free: 6.516 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001071/0.2303, allocations: 436 kB / 389.4 MB, free: 6.316 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002172/0.2325, allocations: 1.902 MB / 391.3 MB, free: 5.523 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001196/0.2327, allocations: 212 kB / 391.5 MB, free: 5.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003201/0.233, allocations: 266.9 kB / 391.8 MB, free: 5.34 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004477/0.2375, allocations: 3.549 MB / 395.3 MB, free: 3.254 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.293e-05/0.2375, allocations: 3.312 kB / 395.3 MB, free: 3.254 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002093/0.2377, allocations: 111.5 kB / 395.5 MB, free: 3.168 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.97e-05/0.2378, allocations: 122.8 kB / 395.6 MB, free: 3.148 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003768/0.2416, allocations: 3.003 MB / 398.6 MB, free: 1.637 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01311/0.2547, allocations: 11.16 MB / 409.7 MB, free: 7.012 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002487/0.2572, allocations: 2.304 MB / 412 MB, free: 4.551 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001801/0.259, allocations: 1.199 MB / 413.2 MB, free: 3.355 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002457/0.2593, allocations: 206.1 kB / 413.4 MB, free: 3.117 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.148e-05/0.2593, allocations: 59.23 kB / 413.5 MB, free: 3.055 MB / 318.1 MB Notification: Performance of pre-optimization done (n=131): time 2.415e-06/0.2594, allocations: 0 / 413.5 MB, free: 3.055 MB / 318.1 MB Notification: Performance of matching and sorting (n=148): time 0.01382/0.2732, allocations: 7.654 MB / 421.2 MB, free: 11.29 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.582e-05/0.2732, allocations: 68.66 kB / 421.2 MB, free: 11.21 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002389/0.2756, allocations: 1.975 MB / 423.2 MB, free: 9.191 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.08e-05/0.2757, allocations: 49.7 kB / 423.2 MB, free: 9.137 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008013/0.2765, allocations: 1.314 MB / 424.6 MB, free: 7.816 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003511/0.2769, allocations: 0.5057 MB / 425.1 MB, free: 7.312 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001931/0.2771, allocations: 145.6 kB / 425.2 MB, free: 7.164 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.572e-05/0.2772, allocations: 305.1 kB / 425.5 MB, free: 6.863 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00134/0.2785, allocations: 0.8979 MB / 426.4 MB, free: 5.965 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001617/0.2802, allocations: 1.389 MB / 427.8 MB, free: 4.375 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003053/0.2832, allocations: 2.416 MB / 430.2 MB, free: 1.816 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.322e-06/0.2832, allocations: 7.938 kB / 430.2 MB, free: 1.809 MB / 334.1 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.004358/0.2876, allocations: 3.022 MB / 433.2 MB, free: 14.85 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.2876, allocations: 8 kB / 433.2 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.487e-05/0.2877, allocations: 19.94 kB / 433.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009711/0.2886, allocations: 468.6 kB / 433.7 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001452/0.2901, allocations: 439.6 kB / 434.2 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005534/0.2956, allocations: 5.591 MB / 439.7 MB, free: 8.133 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001203/0.2969, allocations: 139.8 kB / 439.9 MB, free: 7.996 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001226/0.297, allocations: 68 kB / 439.9 MB, free: 7.93 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (199): * Single equations (assignments): 194 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * 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): 2 systems {(3,16,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001141/0.2981, allocations: 0.8489 MB / 440.8 MB, free: 7.094 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003077/0.2985, allocations: 213.5 kB / 441 MB, free: 6.883 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004017/0.3025, allocations: 2.619 MB / 443.6 MB, free: 4.242 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-05/0.3025, allocations: 23.94 kB / 443.6 MB, free: 4.219 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/0.3025, allocations: 4 kB / 443.7 MB, free: 4.215 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.262e-05/0.3026, allocations: 7.969 kB / 443.7 MB, free: 4.207 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007838/0.3104, allocations: 5.673 MB / 449.3 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.063e-06/0.3104, allocations: 4 kB / 449.3 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001112/0.3115, allocations: 294.7 kB / 449.6 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001152/0.3127, allocations: 0.4927 MB / 450.1 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001/0.3128, allocations: 35.98 kB / 450.2 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006566/0.3194, allocations: 7.067 MB / 457.2 MB, free: 6.23 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.888e-06/0.3194, allocations: 4 kB / 457.2 MB, free: 6.227 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0053/0.3247, allocations: 3.895 MB / 461.1 MB, free: 2.262 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006795/0.3254, allocations: 482.4 kB / 461.6 MB, free: 1.77 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000239/0.3256, allocations: 39.5 kB / 461.6 MB, free: 1.734 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001065/0.3267, allocations: 111.9 kB / 461.7 MB, free: 1.625 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002197/0.3269, allocations: 113.2 kB / 461.8 MB, free: 1.516 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.953e-05/0.327, allocations: 43.98 kB / 461.9 MB, free: 1.473 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00165/0.3287, allocations: 1.367 MB / 463.3 MB, free: 88 kB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3287, allocations: 0 / 463.3 MB, free: 88 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.001605/0.3303, allocations: 0.586 MB / 463.8 MB, free: 15.5 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smee.inertiaRotor.w,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[1],smee.idq_rr[2],smee.idq_dr[1],mechanicalMultiSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (125): * Single equations (assignments): 120 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,16,100.0%), (1,6,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.0003743/0.3307, allocations: 228.1 kB / 464.1 MB, free: 15.28 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003631/0.3343, allocations: 2.635 MB / 466.7 MB, free: 12.65 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.3344, allocations: 0 / 466.7 MB, free: 12.65 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002301/0.3367, allocations: 1.614 MB / 468.3 MB, free: 11.03 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002566/0.3392, allocations: 471 kB / 468.8 MB, free: 10.57 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007946/0.3472, allocations: 7.024 MB / 475.8 MB, free: 3.473 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001597/0.3488, allocations: 2.104 MB / 477.9 MB, free: 1.336 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004729/0.3493, allocations: 151.3 kB / 478.1 MB, free: 1.188 MB / 382.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3493, allocations: 4 kB / 478.1 MB, free: 1.184 MB / 382.1 MB Notification: Performance of Templates: time 0.1825/0.5318, allocations: 74.76 MB / 0.5399 GB, free: 151.9 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_DOL/SMEE_DOL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches