Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.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.001425/0.001425, allocations: 123.9 kB / 17.79 MB, free: 5.266 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.001342/0.001342, allocations: 185.2 kB / 20.73 MB, free: 2.332 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.528/1.528, allocations: 225.6 MB / 249.1 MB, free: 3.613 MB / 190.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.SMPM_ResistiveBraking,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001434/0.001434, allocations: 47.91 kB / 365.7 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09419/0.09563, allocations: 52.14 MB / 417.8 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01309/0.1087, allocations: 11.48 MB / 429.3 MB, free: 1.055 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006959/0.1157, allocations: 3.548 MB / 432.8 MB, free: 13.5 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001285/0.117, allocations: 67.69 kB / 432.9 MB, free: 13.43 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002209/0.1192, allocations: 0.8969 MB / 433.8 MB, free: 12.53 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002498/0.1217, allocations: 0.9708 MB / 434.8 MB, free: 11.55 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008933/0.1226, allocations: 439.4 kB / 435.2 MB, free: 11.12 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004136/0.1267, allocations: 3.739 MB / 438.9 MB, free: 7.367 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002614/0.1293, allocations: 2.092 MB / 441 MB, free: 5.211 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002246/0.1316, allocations: 1.659 MB / 442.7 MB, free: 3.547 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002577/0.1341, allocations: 2.02 MB / 444.7 MB, free: 1.52 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005855/0.1347, allocations: 416 kB / 445.1 MB, free: 1.113 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009052/0.1356, allocations: 0.5037 MB / 445.6 MB, free: 0.6094 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1946/0.3302, allocations: 1.201 MB / 446.8 MB, free: 13.08 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002834/0.3331, allocations: 1.936 MB / 448.7 MB, free: 12.92 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006639/0.3397, allocations: 5.559 MB / 454.3 MB, free: 12.22 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.042e-06/0.3397, allocations: 0 / 454.3 MB, free: 12.22 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.3397, allocations: 0 / 454.3 MB, free: 12.22 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001792/0.3399, allocations: 0 / 454.3 MB, free: 12.22 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: 739 * Number of variables: 739 Notification: Performance of Generate backend data structure: time 0.01145/0.3513, allocations: 3.907 MB / 458.2 MB, free: 10.6 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.658e-05/0.3514, allocations: 10.27 kB / 458.2 MB, free: 10.6 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008738/0.3523, allocations: 412.2 kB / 458.6 MB, free: 10.55 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001286/0.3536, allocations: 410 kB / 459 MB, free: 10.35 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004878/0.3584, allocations: 2.069 MB / 461.1 MB, free: 9.797 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001865/0.3586, allocations: 213.5 kB / 461.3 MB, free: 9.789 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005793/0.3592, allocations: 295.4 kB / 461.6 MB, free: 9.781 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007003/0.3662, allocations: 3.856 MB / 465.4 MB, free: 8.738 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.55e-05/0.3663, allocations: 12.12 kB / 465.5 MB, free: 8.73 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002787/0.3666, allocations: 112.8 kB / 465.6 MB, free: 8.645 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001336/0.3667, allocations: 123.2 kB / 465.7 MB, free: 8.633 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005437/0.3721, allocations: 3.252 MB / 468.9 MB, free: 7.492 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01803/0.3902, allocations: 11.81 MB / 480.8 MB, free: 15.72 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003356/0.3935, allocations: 3.546 MB / 484.3 MB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001982/0.3955, allocations: 1.153 MB / 485.5 MB, free: 11.97 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002486/0.3958, allocations: 128.8 kB / 485.6 MB, free: 11.86 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.706e-05/0.3958, allocations: 50.34 kB / 485.6 MB, free: 11.81 MB / 382.1 MB Notification: Performance of pre-optimization done (n=136): time 3.847e-06/0.3958, allocations: 0.7031 kB / 485.6 MB, free: 11.81 MB / 382.1 MB Notification: Performance of matching and sorting (n=151): time 0.01423/0.41, allocations: 7.348 MB / 493 MB, free: 7.301 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.987e-05/0.4101, allocations: 75.39 kB / 493.1 MB, free: 7.227 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003294/0.4134, allocations: 2.066 MB / 495.1 MB, free: 5.707 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003187/0.4137, allocations: 53.7 kB / 495.2 MB, free: 5.648 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001167/0.4149, allocations: 1.402 MB / 496.6 MB, free: 4.242 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005541/0.4154, allocations: 0.5357 MB / 497.1 MB, free: 3.715 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006138/0.416, allocations: 351.4 kB / 497.5 MB, free: 3.363 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.4162, allocations: 305.1 kB / 497.8 MB, free: 3.062 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001399/0.4176, allocations: 0.8666 MB / 498.6 MB, free: 2.195 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001765/0.4193, allocations: 1.368 MB / 500 MB, free: 0.6289 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00334/0.4227, allocations: 2.319 MB / 0.4905 GB, free: 14.16 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.537e-05/0.4227, allocations: 8 kB / 0.4905 GB, free: 14.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.006147/0.4288, allocations: 3.266 MB / 0.4937 GB, free: 10.94 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.125e-05/0.4289, allocations: 15.98 kB / 0.4937 GB, free: 10.92 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.621e-05/0.4289, allocations: 16 kB / 0.4938 GB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002449/0.4314, allocations: 0.8493 MB / 0.4946 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001319/0.4327, allocations: 344.1 kB / 0.4949 GB, free: 9.723 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02018/0.4529, allocations: 20.58 MB / 0.515 GB, free: 3.723 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001892/0.4548, allocations: 99.88 kB / 0.5151 GB, free: 3.625 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002781/0.455, allocations: 72.11 kB / 0.5152 GB, free: 3.555 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 2 (booleanReplicator3.y[3],booleanReplicator2.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (194): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(2,9,100.0%), (1,6,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (2,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002032/0.4571, allocations: 0.9499 MB / 0.5161 GB, free: 2.621 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005456/0.4576, allocations: 230.5 kB / 0.5163 GB, free: 2.395 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004872/0.4625, allocations: 2.613 MB / 0.5189 GB, free: 15.75 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.597e-05/0.4625, allocations: 20.94 kB / 0.5189 GB, free: 15.73 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.802e-05/0.4625, allocations: 4 kB / 0.5189 GB, free: 15.73 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.443e-05/0.4625, allocations: 7.969 kB / 0.5189 GB, free: 15.72 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01099/0.4735, allocations: 5.86 MB / 0.5246 GB, free: 9.77 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.018e-05/0.4735, allocations: 4.094 kB / 0.5246 GB, free: 9.766 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007805/0.4743, allocations: 198 kB / 0.5248 GB, free: 9.582 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001915/0.4762, allocations: 0.7424 MB / 0.5256 GB, free: 8.82 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001216/0.4764, allocations: 32 kB / 0.5256 GB, free: 8.789 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01741/0.4938, allocations: 18.16 MB / 0.5433 GB, free: 5.32 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.015e-06/0.4938, allocations: 8 kB / 0.5433 GB, free: 5.312 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006547/0.5003, allocations: 3.8 MB / 0.547 GB, free: 1.43 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001519/0.5018, allocations: 499.5 kB / 0.5475 GB, free: 0.9219 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006031/0.5025, allocations: 39.92 kB / 0.5475 GB, free: 0.8828 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001298/0.5038, allocations: 103.9 kB / 0.5476 GB, free: 0.7812 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00038/0.5041, allocations: 139.2 kB / 0.5478 GB, free: 0.6484 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001234/0.5043, allocations: 47.98 kB / 0.5478 GB, free: 0.6016 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002742/0.507, allocations: 1.4 MB / 0.5492 GB, free: 15.18 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.507, allocations: 4 kB / 0.5492 GB, free: 15.18 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002945/0.5099, allocations: 0.6562 MB / 0.5498 GB, free: 14.52 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(2,9,100.0%), (1,1,100.0%), (1,6,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,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.006623/0.5166, allocations: 4.457 MB / 0.5542 GB, free: 9.984 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005084/0.5216, allocations: 3.36 MB / 0.5575 GB, free: 6.543 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.132e-06/0.5217, allocations: 0 / 0.5575 GB, free: 6.543 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00273/0.5244, allocations: 2.147 MB / 0.5596 GB, free: 4.301 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003112/0.5275, allocations: 0.6806 MB / 0.5602 GB, free: 3.625 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04995/0.5774, allocations: 22.58 MB / 0.5823 GB, free: 12.45 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003595/0.581, allocations: 2.284 MB / 0.5845 GB, free: 10.14 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001841/0.5829, allocations: 0.4909 MB / 0.585 GB, free: 9.641 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001772/0.5847, allocations: 1.089 MB / 0.5861 GB, free: 8.551 MB / 494.1 MB Notification: Performance of SimCode: time 1.222e-06/0.5847, allocations: 0 / 0.5861 GB, free: 8.551 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3516/0.9362, allocations: 60.16 MB / 0.6448 GB, free: 171.3 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.56/15.5, allocations: 12.22 kB / 0.6448 GB, free: 171.3 MB / 0.5137 GB " [Timeout remaining time 644] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.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: 18.30074706627056]