Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00154/0.00154, allocations: 191.8 kB / 17.37 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.314/1.314, allocations: 226.5 MB / 244.7 MB, free: 6.477 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007863/0.0007863, allocations: 96.28 kB / 296.8 MB, free: 6.695 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002136/0.0002136, allocations: 4 kB / 356.8 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.196/0.1963, allocations: 51.29 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL): time 0.007817/0.2041, allocations: 10.47 MB / 418.5 MB, free: 17.2 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005369/0.2095, allocations: 3.752 MB / 422.3 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001431/0.211, allocations: 55.75 kB / 422.3 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001775/0.2128, allocations: 0.6992 MB / 423 MB, free: 12.69 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0022/0.215, allocations: 0.8545 MB / 423.9 MB, free: 11.83 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009813/0.216, allocations: 347.5 kB / 424.2 MB, free: 11.49 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00282/0.2188, allocations: 3.526 MB / 427.7 MB, free: 7.957 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002001/0.2208, allocations: 2.272 MB / 430 MB, free: 5.621 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001245/0.2221, allocations: 1.148 MB / 431.2 MB, free: 4.469 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001494/0.2236, allocations: 1.576 MB / 432.7 MB, free: 2.887 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002831/0.2239, allocations: 168 kB / 432.9 MB, free: 2.723 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008123/0.2247, allocations: 447.4 kB / 433.3 MB, free: 2.285 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000601/0.2253, allocations: 0.8605 MB / 434.2 MB, free: 1.422 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001194/0.2265, allocations: 1.483 MB / 435.7 MB, free: 15.92 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003795/0.2304, allocations: 4.289 MB / 440 MB, free: 11.62 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.2304, allocations: 8 kB / 440 MB, free: 11.62 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2304, allocations: 0 / 440 MB, free: 11.62 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.507e-05/0.2305, allocations: 0 / 440 MB, free: 11.62 MB / 314.7 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.006137/0.2366, allocations: 3.158 MB / 443.1 MB, free: 8.395 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.2367, allocations: 8.031 kB / 443.1 MB, free: 8.387 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001694/0.2384, allocations: 480.6 kB / 443.6 MB, free: 7.914 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003234/0.2416, allocations: 1.91 MB / 445.5 MB, free: 5.949 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001838/0.2418, allocations: 213.3 kB / 445.7 MB, free: 5.738 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004049/0.2422, allocations: 267.9 kB / 446 MB, free: 5.477 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005998/0.2483, allocations: 3.517 MB / 449.5 MB, free: 1.879 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.291e-05/0.2483, allocations: 7.938 kB / 449.5 MB, free: 1.871 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000247/0.2486, allocations: 112 kB / 449.6 MB, free: 1.762 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001373/0.2487, allocations: 121.2 kB / 449.7 MB, free: 1.641 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00539/0.2541, allocations: 2.98 MB / 452.7 MB, free: 14.64 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01676/0.2709, allocations: 11.16 MB / 463.9 MB, free: 3.145 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002839/0.2738, allocations: 2.3 MB / 466.2 MB, free: 0.6875 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00199/0.2758, allocations: 1.207 MB / 467.4 MB, free: 15.48 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003125/0.2761, allocations: 203.5 kB / 467.6 MB, free: 15.24 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.239e-05/0.2762, allocations: 47.88 kB / 467.6 MB, free: 15.19 MB / 346.7 MB Notification: Performance of pre-optimization done (n=131): time 3.386e-06/0.2762, allocations: 0 / 467.6 MB, free: 15.19 MB / 346.7 MB Notification: Performance of matching and sorting (n=148): time 0.01587/0.292, allocations: 7.655 MB / 475.3 MB, free: 7.391 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.073e-05/0.2921, allocations: 64.72 kB / 475.4 MB, free: 7.316 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002781/0.2949, allocations: 1.964 MB / 477.3 MB, free: 5.309 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001165/0.295, allocations: 57.7 kB / 477.4 MB, free: 5.246 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009229/0.296, allocations: 1.316 MB / 478.7 MB, free: 3.914 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004037/0.2964, allocations: 0.5045 MB / 479.2 MB, free: 3.402 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001005/0.2965, allocations: 32 kB / 479.2 MB, free: 3.371 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.2966, allocations: 373.9 kB / 479.6 MB, free: 3 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001538/0.2982, allocations: 0.8979 MB / 480.5 MB, free: 2.102 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00181/0.3, allocations: 1.379 MB / 481.9 MB, free: 0.5156 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003377/0.3034, allocations: 2.404 MB / 484.3 MB, free: 13.91 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.644e-06/0.3034, allocations: 4 kB / 484.3 MB, free: 13.9 MB / 362.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.005172/0.3086, allocations: 3.001 MB / 487.3 MB, free: 10.86 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.47e-05/0.3086, allocations: 10.5 kB / 487.3 MB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.123e-05/0.3087, allocations: 16.38 kB / 487.3 MB, free: 10.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001131/0.3098, allocations: 468.6 kB / 487.8 MB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001629/0.3115, allocations: 443.3 kB / 488.2 MB, free: 9.941 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00628/0.3177, allocations: 5.589 MB / 493.8 MB, free: 4.094 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001602/0.3194, allocations: 131.7 kB / 493.9 MB, free: 3.965 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001487/0.3195, allocations: 76 kB / 494 MB, free: 3.891 MB / 362.7 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 (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 16,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001473/0.321, allocations: 0.8524 MB / 494.8 MB, free: 3.027 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003992/0.3214, allocations: 213.5 kB / 495.1 MB, free: 2.816 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00457/0.326, allocations: 2.611 MB / 497.7 MB, free: 168 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.207e-05/0.326, allocations: 16 kB / 497.7 MB, free: 152 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.155e-06/0.3261, allocations: 4 kB / 497.7 MB, free: 148 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.544e-05/0.3261, allocations: 7.969 kB / 497.7 MB, free: 140 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009351/0.3354, allocations: 5.675 MB / 0.4916 GB, free: 10.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.04e-05/0.3355, allocations: 8.391 kB / 0.4916 GB, free: 10.31 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001248/0.3367, allocations: 287.6 kB / 0.4919 GB, free: 10.03 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001325/0.3381, allocations: 0.4942 MB / 0.4923 GB, free: 9.523 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001121/0.3382, allocations: 47.91 kB / 0.4924 GB, free: 9.477 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007437/0.3456, allocations: 7.037 MB / 0.4993 GB, free: 2.039 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.604e-06/0.3457, allocations: 11.88 kB / 0.4993 GB, free: 2.027 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1608/0.5065, allocations: 3.87 MB / 0.503 GB, free: 89 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001196/0.5077, allocations: 481.8 kB / 0.5035 GB, free: 88.9 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005501/0.5083, allocations: 40.78 kB / 0.5035 GB, free: 88.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001412/0.5097, allocations: 104.9 kB / 0.5036 GB, free: 88.9 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003121/0.51, allocations: 119.2 kB / 0.5038 GB, free: 88.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00013/0.5102, allocations: 47.55 kB / 0.5038 GB, free: 88.9 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002439/0.5126, allocations: 1.348 MB / 0.5051 GB, free: 88.49 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.5126, allocations: 0 / 0.5051 GB, free: 88.49 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002212/0.5149, allocations: 0.5883 MB / 0.5057 GB, free: 88.44 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 16,(1,100.0%) 6,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004791/0.5154, allocations: 218.4 kB / 0.5059 GB, free: 88.33 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004219/0.5196, allocations: 2.622 MB / 0.5085 GB, free: 87.27 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/0.5196, allocations: 5.031 kB / 0.5085 GB, free: 87.27 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002409/0.522, allocations: 1.61 MB / 0.51 GB, free: 86.52 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003083/0.5251, allocations: 480 kB / 0.5105 GB, free: 86.37 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008463/0.5336, allocations: 6.716 MB / 0.5171 GB, free: 82.67 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001579/0.5352, allocations: 2.1 MB / 0.5191 GB, free: 81.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006661/0.5359, allocations: 154.2 kB / 0.5193 GB, free: 81.69 MB / 378.7 MB Notification: Performance of SimCode: time 9.11e-07/0.5359, allocations: 0 / 0.5193 GB, free: 81.69 MB / 378.7 MB Notification: Performance of Templates: time 0.06151/0.5974, allocations: 74.84 MB / 0.5923 GB, free: 7.5 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_DOL/SMEE_DOL.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches