Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001741/0.001741, allocations: 109.5 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002384/0.002384, allocations: 187.1 kB / 23.72 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.423/1.423, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002209/0.002209, allocations: 51.92 kB / 370.5 MB, free: 9.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2449/0.2471, allocations: 52.18 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.01293/0.26, allocations: 10.3 MB / 432.9 MB, free: 4.246 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0066/0.2666, allocations: 3.24 MB / 436.2 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001305/0.268, allocations: 75.5 kB / 436.2 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001862/0.2698, allocations: 0.7376 MB / 437 MB, free: 184 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002719/0.2725, allocations: 0.8894 MB / 437.9 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001033/0.2736, allocations: 415.4 kB / 438.3 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003631/0.2772, allocations: 2.968 MB / 441.3 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001844/0.279, allocations: 1.384 MB / 442.6 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001751/0.2808, allocations: 1.382 MB / 444 MB, free: 9.066 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002351/0.2831, allocations: 1.74 MB / 445.8 MB, free: 7.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004696/0.2836, allocations: 356 kB / 446.1 MB, free: 6.973 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007785/0.2844, allocations: 455.8 kB / 446.5 MB, free: 6.527 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00102/0.2854, allocations: 1.028 MB / 447.6 MB, free: 5.496 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001654/0.2871, allocations: 1.614 MB / 449.2 MB, free: 3.875 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005099/0.2922, allocations: 4.687 MB / 453.9 MB, free: 15.17 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.2922, allocations: 8 kB / 453.9 MB, free: 15.16 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2922, allocations: 0 / 453.9 MB, free: 15.16 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.049e-05/0.2922, allocations: 0 / 453.9 MB, free: 15.16 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 606 * Number of variables: 606 Notification: Performance of Generate backend data structure: time 0.00622/0.2985, allocations: 3.26 MB / 457.1 MB, free: 11.85 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/0.2985, allocations: 12.03 kB / 457.2 MB, free: 11.84 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004249/0.2989, allocations: 333.6 kB / 457.5 MB, free: 11.5 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000754/0.2997, allocations: 346.9 kB / 457.8 MB, free: 11.16 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00325/0.3029, allocations: 1.693 MB / 459.5 MB, free: 9.43 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001566/0.3031, allocations: 184.6 kB / 459.7 MB, free: 9.246 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003483/0.3034, allocations: 232 kB / 459.9 MB, free: 9.02 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005106/0.3085, allocations: 3.133 MB / 463.1 MB, free: 5.797 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.2e-05/0.3086, allocations: 7.953 kB / 463.1 MB, free: 5.789 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002154/0.3088, allocations: 96 kB / 463.2 MB, free: 5.695 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000117/0.309, allocations: 108.6 kB / 463.3 MB, free: 5.586 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004595/0.3135, allocations: 2.7 MB / 466 MB, free: 2.871 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.016/0.3295, allocations: 9.482 MB / 475.4 MB, free: 9.098 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002482/0.332, allocations: 1.414 MB / 476.9 MB, free: 7.684 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001912/0.3339, allocations: 1.042 MB / 477.9 MB, free: 6.645 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002374/0.3342, allocations: 53.88 kB / 478 MB, free: 6.59 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.559e-05/0.3342, allocations: 51.55 kB / 478 MB, free: 6.531 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 3.066e-06/0.3342, allocations: 0 / 478 MB, free: 6.531 MB / 382.1 MB Notification: Performance of matching and sorting (n=131): time 0.01398/0.3482, allocations: 6.343 MB / 484.3 MB, free: 156 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.776e-05/0.3483, allocations: 68.72 kB / 484.4 MB, free: 76 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002625/0.3509, allocations: 1.747 MB / 486.2 MB, free: 14.32 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001196/0.351, allocations: 49.7 kB / 486.2 MB, free: 14.27 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009323/0.3519, allocations: 1.178 MB / 487.4 MB, free: 13.08 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004012/0.3523, allocations: 480 kB / 487.9 MB, free: 12.61 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005178/0.3529, allocations: 283.5 kB / 488.1 MB, free: 12.32 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.353, allocations: 309.1 kB / 488.4 MB, free: 12.02 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001322/0.3543, allocations: 0.7963 MB / 489.2 MB, free: 11.22 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001606/0.3559, allocations: 1.201 MB / 490.4 MB, free: 9.852 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003186/0.3591, allocations: 2.098 MB / 492.5 MB, free: 7.582 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.163e-06/0.3591, allocations: 4 kB / 492.5 MB, free: 7.578 MB / 398.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004615/0.3637, allocations: 2.6 MB / 495.1 MB, free: 4.957 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.853e-05/0.3638, allocations: 12 kB / 495.1 MB, free: 4.945 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.663e-05/0.3638, allocations: 12 kB / 495.2 MB, free: 4.934 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001043/0.3648, allocations: 415.5 kB / 495.6 MB, free: 4.516 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001334/0.3662, allocations: 359.4 kB / 495.9 MB, free: 4.164 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007715/0.3739, allocations: 6.779 MB / 0.4909 GB, free: 13.05 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00151/0.3754, allocations: 107.8 kB / 0.491 GB, free: 12.94 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002119/0.3756, allocations: 60 kB / 0.4911 GB, free: 12.88 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 3 (idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (174): * Single equations (assignments): 170 * 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,11,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.001703/0.3773, allocations: 0.7979 MB / 0.4918 GB, free: 12.07 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005118/0.3778, allocations: 190.8 kB / 0.492 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00453/0.3823, allocations: 2.296 MB / 0.4943 GB, free: 9.559 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.46e-05/0.3823, allocations: 12 kB / 0.4943 GB, free: 9.547 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.347e-05/0.3824, allocations: 4 kB / 0.4943 GB, free: 9.543 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.451e-05/0.3824, allocations: 7.969 kB / 0.4943 GB, free: 9.535 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01003/0.3924, allocations: 4.985 MB / 0.4992 GB, free: 4.438 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.575e-05/0.3924, allocations: 8.406 kB / 0.4992 GB, free: 4.43 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001047/0.3935, allocations: 239.6 kB / 0.4994 GB, free: 4.195 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001221/0.3947, allocations: 458 kB / 0.4998 GB, free: 3.738 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001182/0.3948, allocations: 35.98 kB / 0.4999 GB, free: 3.703 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009559/0.4044, allocations: 8.23 MB / 0.5079 GB, free: 11.02 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.4044, allocations: 7.938 kB / 0.5079 GB, free: 11.01 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006327/0.4107, allocations: 3.443 MB / 0.5113 GB, free: 7.496 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001175/0.4119, allocations: 378.6 kB / 0.5116 GB, free: 7.125 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004606/0.4123, allocations: 28 kB / 0.5117 GB, free: 7.098 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001197/0.4135, allocations: 87.89 kB / 0.5118 GB, free: 7.012 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003212/0.4139, allocations: 128.7 kB / 0.5119 GB, free: 6.887 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001/0.414, allocations: 35.98 kB / 0.5119 GB, free: 6.852 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002291/0.4162, allocations: 1.198 MB / 0.5131 GB, free: 5.66 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4162, allocations: 0 / 0.5131 GB, free: 5.66 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002159/0.4184, allocations: 0.4999 MB / 0.5136 GB, free: 5.16 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 6 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],loadInertia.phi) * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 110 * 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,11,100.0%), (1,1,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.006604/0.425, allocations: 4.087 MB / 0.5176 GB, free: 0.9883 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004462/0.4295, allocations: 2.316 MB / 0.5198 GB, free: 14.63 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.681e-06/0.4295, allocations: 0 / 0.5198 GB, free: 14.63 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002705/0.4322, allocations: 1.555 MB / 0.5213 GB, free: 13.03 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002676/0.4349, allocations: 474.7 kB / 0.5218 GB, free: 12.57 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03556/0.4704, allocations: 19.36 MB / 0.5407 GB, free: 8.535 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002748/0.4732, allocations: 2.001 MB / 0.5426 GB, free: 6.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001499/0.4747, allocations: 443.5 kB / 0.5431 GB, free: 6.062 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001559/0.4762, allocations: 0.9249 MB / 0.544 GB, free: 5.137 MB / 462.1 MB Notification: Performance of SimCode: time 9.42e-07/0.4762, allocations: 0 / 0.544 GB, free: 5.137 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2906/0.7669, allocations: 49.41 MB / 0.5922 GB, free: 90.93 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 27.78/28.55, allocations: 14.52 kB / 0.5922 GB, free: 90.93 MB / 462.1 MB " [Timeout remaining time 631] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL_fmu --startTime=0 --stopTime=2.5 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_DOL/SMR_DOL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 31.324028610019013]