Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001887/0.001887, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002257/0.002257, allocations: 217.1 kB / 24.47 MB, free: 3.777 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.459/1.459, allocations: 207.7 MB / 235.3 MB, free: 9.801 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002954/0.002954, allocations: 64.39 kB / 347.2 MB, free: 9.867 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.285/0.2879, allocations: 49.16 MB / 396.4 MB, free: 9.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.01138/0.2993, allocations: 9.58 MB / 406 MB, free: 2.781 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007807/0.3071, allocations: 3.484 MB / 409.4 MB, free: 312 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00279/0.3099, allocations: 76.69 kB / 409.5 MB, free: 276 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002749/0.3126, allocations: 0.8071 MB / 410.3 MB, free: 15.86 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00463/0.3173, allocations: 0.9168 MB / 411.2 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001887/0.3192, allocations: 468.3 kB / 411.7 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00523/0.3244, allocations: 2.959 MB / 414.7 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003881/0.3283, allocations: 1.467 MB / 416.1 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003291/0.3316, allocations: 1.404 MB / 417.5 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003245/0.3348, allocations: 1.687 MB / 419.2 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006923/0.3355, allocations: 373.5 kB / 419.6 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001085/0.3366, allocations: 474.4 kB / 420 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001183/0.3378, allocations: 1.093 MB / 421.1 MB, free: 9.473 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001722/0.3395, allocations: 1.341 MB / 422.5 MB, free: 8.59 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005597/0.3451, allocations: 4.934 MB / 427.4 MB, free: 4.074 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.3451, allocations: 0 / 427.4 MB, free: 4.074 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.3451, allocations: 0 / 427.4 MB, free: 4.074 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001017/0.3452, allocations: 0 / 427.4 MB, free: 4.074 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 660 * Number of variables: 660 Notification: Performance of Generate backend data structure: time 0.006798/0.352, allocations: 3.386 MB / 430.8 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.061e-05/0.352, allocations: 15.98 kB / 430.8 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004715/0.3525, allocations: 370.9 kB / 431.2 MB, free: 256 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000808/0.3533, allocations: 350.8 kB / 431.5 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003273/0.3566, allocations: 1.631 MB / 433.1 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001709/0.3568, allocations: 197.1 kB / 433.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003659/0.3571, allocations: 244 kB / 433.6 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005361/0.3625, allocations: 3.362 MB / 436.9 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.606e-05/0.3626, allocations: 11.94 kB / 436.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000234/0.3628, allocations: 104 kB / 437 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001444/0.3629, allocations: 120.9 kB / 437.2 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004609/0.3675, allocations: 2.74 MB / 439.9 MB, free: 7.352 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01556/0.3831, allocations: 9.464 MB / 449.4 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001739/0.3849, allocations: 1.047 MB / 450.4 MB, free: 12.46 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001289/0.3861, allocations: 0.6993 MB / 451.1 MB, free: 11.76 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000243/0.3864, allocations: 44.91 kB / 451.2 MB, free: 11.71 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.855e-05/0.3864, allocations: 51.55 kB / 451.2 MB, free: 11.66 MB / 366.1 MB Notification: Performance of pre-optimization done (n=97): time 3.797e-06/0.3864, allocations: 0 / 451.2 MB, free: 11.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=122): time 0.01537/0.4018, allocations: 6.774 MB / 458 MB, free: 4.848 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.824e-05/0.4019, allocations: 64.41 kB / 458 MB, free: 4.773 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002897/0.4048, allocations: 1.82 MB / 459.9 MB, free: 2.953 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.981e-05/0.4049, allocations: 45.7 kB / 459.9 MB, free: 2.902 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001157/0.406, allocations: 1.31 MB / 461.2 MB, free: 1.578 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004552/0.4065, allocations: 448.2 kB / 461.7 MB, free: 1.137 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004904/0.407, allocations: 303.4 kB / 462 MB, free: 0.832 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.4071, allocations: 309.1 kB / 462.3 MB, free: 0.5273 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001228/0.4083, allocations: 0.773 MB / 463 MB, free: 15.75 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001738/0.4101, allocations: 1.301 MB / 464.3 MB, free: 14.23 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003199/0.4133, allocations: 2.211 MB / 466.5 MB, free: 11.78 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.017e-05/0.4133, allocations: 4 kB / 466.5 MB, free: 11.78 MB / 382.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004286/0.4176, allocations: 2.479 MB / 469 MB, free: 9.277 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.841e-05/0.4176, allocations: 12 kB / 469 MB, free: 9.266 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.378e-05/0.4176, allocations: 16 kB / 469.1 MB, free: 9.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000637/0.4183, allocations: 243.9 kB / 469.3 MB, free: 9 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001441/0.4197, allocations: 423.2 kB / 469.7 MB, free: 8.586 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003049/0.4227, allocations: 3.019 MB / 472.7 MB, free: 5.332 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001336/0.4241, allocations: 127.8 kB / 472.8 MB, free: 5.207 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001211/0.4242, allocations: 71.98 kB / 472.9 MB, free: 5.137 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {(2,100.0%), (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 {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001485/0.4257, allocations: 0.8329 MB / 473.8 MB, free: 4.293 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003329/0.426, allocations: 194.7 kB / 473.9 MB, free: 4.102 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003556/0.4296, allocations: 2.027 MB / 476 MB, free: 2.055 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.492e-05/0.4296, allocations: 15.98 kB / 476 MB, free: 2.039 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.4296, allocations: 0 / 476 MB, free: 2.039 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.264e-05/0.4296, allocations: 7.922 kB / 476 MB, free: 2.031 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007906/0.4375, allocations: 4.436 MB / 480.4 MB, free: 13.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.386e-06/0.4375, allocations: 4.281 kB / 480.4 MB, free: 13.49 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001081/0.4386, allocations: 263.6 kB / 480.7 MB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00053/0.4391, allocations: 203.2 kB / 480.9 MB, free: 13.02 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.529e-05/0.4392, allocations: 31.92 kB / 480.9 MB, free: 12.99 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002765/0.442, allocations: 3.004 MB / 483.9 MB, free: 9.758 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/0.442, allocations: 4 kB / 483.9 MB, free: 9.754 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00468/0.4467, allocations: 3.125 MB / 487.1 MB, free: 6.574 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001081/0.4477, allocations: 366.5 kB / 487.4 MB, free: 6.215 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002347/0.448, allocations: 27.94 kB / 487.4 MB, free: 6.188 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009204/0.4489, allocations: 95.86 kB / 487.5 MB, free: 6.094 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001679/0.4491, allocations: 84.78 kB / 487.6 MB, free: 6.012 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.501e-05/0.4491, allocations: 32 kB / 487.6 MB, free: 5.98 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002016/0.4512, allocations: 1.22 MB / 488.9 MB, free: 4.77 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4512, allocations: 4.062 kB / 488.9 MB, free: 4.766 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001561/0.4527, allocations: 491.9 kB / 489.4 MB, free: 4.285 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.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 (120): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {(2,100.0%), (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 {(2,1,100.0%), (1,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.00512/0.4578, allocations: 3.765 MB / 493.1 MB, free: 460 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003663/0.4615, allocations: 2.105 MB / 495.2 MB, free: 14.31 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.4615, allocations: 0 / 495.2 MB, free: 14.31 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001787/0.4633, allocations: 1.127 MB / 496.3 MB, free: 13.15 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002265/0.4656, allocations: 0.4936 MB / 496.8 MB, free: 12.66 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02913/0.4947, allocations: 18.79 MB / 0.5035 GB, free: 9.117 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001754/0.4964, allocations: 1.45 MB / 0.505 GB, free: 7.629 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001512/0.498, allocations: 0.496 MB / 0.5054 GB, free: 7.129 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001379/0.4993, allocations: 1.011 MB / 0.5064 GB, free: 6.117 MB / 430.1 MB Notification: Performance of SimCode: time 1.252e-06/0.4993, allocations: 0 / 0.5064 GB, free: 6.117 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1074/0.6067, allocations: 49.11 MB / 0.5544 GB, free: 4.855 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.94/13.55, allocations: 8 kB / 0.5544 GB, free: 4.848 MB / 478.1 MB " [Timeout remaining time 646] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable inertiaLoad.w in file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.csv. Warning: Get data of variable inertiaLoad.w from file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.csv failed! Error: Could not read variable speedSensor.flange.phi in file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.csv. Warning: Get data of variable speedSensor.flange.phi from file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.619817028287798]