Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001875/0.001875, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002925/0.002925, allocations: 204.7 kB / 23.72 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.521/1.521, allocations: 230.5 MB / 257.4 MB, free: 7.758 MB / 206.1 MB " [Timeout remaining time 178] 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002126/0.002126, allocations: 59.91 kB / 377.8 MB, free: 2.797 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2425/0.2446, allocations: 53.4 MB / 431.2 MB, free: 6.434 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01346/0.2581, allocations: 9.65 MB / 440.8 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007323/0.2654, allocations: 3.478 MB / 444.3 MB, free: 9.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001938/0.2673, allocations: 87.38 kB / 444.4 MB, free: 9.164 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002581/0.2699, allocations: 0.8073 MB / 445.2 MB, free: 8.352 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003451/0.2734, allocations: 0.9204 MB / 446.1 MB, free: 7.426 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001478/0.2749, allocations: 467.3 kB / 446.6 MB, free: 6.969 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00417/0.279, allocations: 2.96 MB / 449.5 MB, free: 4.004 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002875/0.2819, allocations: 1.502 MB / 451 MB, free: 2.438 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002248/0.2841, allocations: 1.425 MB / 452.4 MB, free: 1.008 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002953/0.2871, allocations: 1.685 MB / 454.1 MB, free: 15.32 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009477/0.288, allocations: 372 kB / 454.5 MB, free: 14.95 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00137/0.2894, allocations: 483.8 kB / 455 MB, free: 14.48 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00152/0.2909, allocations: 1.091 MB / 456.1 MB, free: 13.39 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002057/0.293, allocations: 1.346 MB / 457.4 MB, free: 12.04 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005304/0.2983, allocations: 4.943 MB / 462.3 MB, free: 7.074 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.76e-06/0.2983, allocations: 3.938 kB / 462.3 MB, free: 7.07 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.2983, allocations: 0 / 462.3 MB, free: 7.07 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001066/0.2984, allocations: 0 / 462.3 MB, free: 7.07 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.007033/0.3054, allocations: 3.398 MB / 465.7 MB, free: 3.621 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/0.3055, allocations: 11.98 kB / 465.8 MB, free: 3.609 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004789/0.306, allocations: 367 kB / 466.1 MB, free: 3.242 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009014/0.3069, allocations: 366.8 kB / 466.5 MB, free: 2.883 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00353/0.3104, allocations: 1.752 MB / 468.2 MB, free: 1.094 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001664/0.3106, allocations: 197.1 kB / 468.4 MB, free: 0.8984 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004074/0.311, allocations: 248 kB / 468.7 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005952/0.3169, allocations: 3.355 MB / 472 MB, free: 13.2 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.828e-05/0.317, allocations: 15.89 kB / 472 MB, free: 13.18 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000233/0.3172, allocations: 99.91 kB / 472.1 MB, free: 13.09 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001483/0.3174, allocations: 124.9 kB / 472.2 MB, free: 12.96 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005196/0.3226, allocations: 2.74 MB / 475 MB, free: 10.21 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01701/0.3396, allocations: 9.425 MB / 484.4 MB, free: 428 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001912/0.3415, allocations: 1.082 MB / 485.5 MB, free: 15.33 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001244/0.3427, allocations: 0.7031 MB / 486.2 MB, free: 14.62 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002366/0.343, allocations: 48.95 kB / 486.2 MB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.491e-05/0.343, allocations: 51.56 kB / 486.3 MB, free: 14.51 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 3.667e-06/0.343, allocations: 3.938 kB / 486.3 MB, free: 14.51 MB / 398.1 MB Notification: Performance of matching and sorting (n=123): time 0.01515/0.3582, allocations: 6.63 MB / 492.9 MB, free: 7.844 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.94e-05/0.3582, allocations: 64.41 kB / 493 MB, free: 7.77 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003164/0.3614, allocations: 1.825 MB / 494.8 MB, free: 5.945 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001148/0.3615, allocations: 45.7 kB / 494.9 MB, free: 5.895 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001071/0.3626, allocations: 1.314 MB / 496.2 MB, free: 4.566 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004239/0.363, allocations: 448.2 kB / 496.6 MB, free: 4.125 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005415/0.3635, allocations: 303.4 kB / 496.9 MB, free: 3.82 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.3637, allocations: 305.1 kB / 497.2 MB, free: 3.52 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001251/0.3649, allocations: 0.773 MB / 498 MB, free: 2.746 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001657/0.3666, allocations: 1.292 MB / 499.3 MB, free: 1.227 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003086/0.3697, allocations: 2.21 MB / 0.4897 GB, free: 14.79 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.505e-05/0.3697, allocations: 4 kB / 0.4897 GB, free: 14.78 MB / 414.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004276/0.3739, allocations: 2.483 MB / 0.4922 GB, free: 12.28 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.906e-05/0.374, allocations: 12 kB / 0.4922 GB, free: 12.27 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.542e-05/0.374, allocations: 19.94 kB / 0.4922 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006402/0.3746, allocations: 240 kB / 0.4924 GB, free: 12 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001486/0.3761, allocations: 419.3 kB / 0.4928 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002862/0.379, allocations: 3.023 MB / 0.4958 GB, free: 8.336 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001459/0.3804, allocations: 131.8 kB / 0.4959 GB, free: 8.207 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000164/0.3806, allocations: 75.92 kB / 0.496 GB, free: 8.133 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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.001387/0.382, allocations: 0.8251 MB / 0.4968 GB, free: 7.297 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004513/0.3825, allocations: 194.7 kB / 0.497 GB, free: 7.105 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003559/0.386, allocations: 2.043 MB / 0.499 GB, free: 5.039 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.208e-05/0.386, allocations: 12 kB / 0.499 GB, free: 5.027 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.386, allocations: 0 / 0.499 GB, free: 5.027 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.571e-05/0.386, allocations: 7.984 kB / 0.499 GB, free: 5.02 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008598/0.3946, allocations: 4.44 MB / 0.5033 GB, free: 496 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.903e-06/0.3946, allocations: 4.281 kB / 0.5033 GB, free: 492 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001102/0.3958, allocations: 263.5 kB / 0.5036 GB, free: 228 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005454/0.3963, allocations: 199.3 kB / 0.5038 GB, free: 16 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000111/0.3964, allocations: 28.06 kB / 0.5038 GB, free: 15.98 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002833/0.3992, allocations: 3.004 MB / 0.5067 GB, free: 12.75 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.3992, allocations: 0 / 0.5067 GB, free: 12.75 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004938/0.4042, allocations: 3.144 MB / 0.5098 GB, free: 9.551 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001152/0.4053, allocations: 358.6 kB / 0.5101 GB, free: 9.199 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004563/0.4058, allocations: 27.94 kB / 0.5102 GB, free: 9.172 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001106/0.4069, allocations: 99.8 kB / 0.5102 GB, free: 9.074 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001942/0.4071, allocations: 80.78 kB / 0.5103 GB, free: 8.996 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.3e-05/0.4072, allocations: 35.98 kB / 0.5104 GB, free: 8.961 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002211/0.4094, allocations: 1.228 MB / 0.5116 GB, free: 7.742 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4094, allocations: 4.062 kB / 0.5116 GB, free: 7.738 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001716/0.4111, allocations: 483.9 kB / 0.512 GB, free: 7.266 MB / 430.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 (121): * Single equations (assignments): 117 * 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.00534/0.4164, allocations: 3.795 MB / 0.5157 GB, free: 3.406 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003687/0.4201, allocations: 2.116 MB / 0.5178 GB, free: 1.262 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.4201, allocations: 0 / 0.5178 GB, free: 1.262 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001842/0.422, allocations: 1.119 MB / 0.5189 GB, free: 112 kB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002555/0.4245, allocations: 0.4892 MB / 0.5194 GB, free: 15.63 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2199/0.6445, allocations: 18.79 MB / 0.5377 GB, free: 101.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001613/0.6461, allocations: 1.438 MB / 0.5391 GB, free: 101.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001382/0.6475, allocations: 0.5006 MB / 0.5396 GB, free: 101.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001051/0.6485, allocations: 1.017 MB / 0.5406 GB, free: 100.3 MB / 446.1 MB Notification: Performance of SimCode: time 1.042e-06/0.6485, allocations: 0 / 0.5406 GB, free: 100.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08525/0.7338, allocations: 49.28 MB / 0.5887 GB, free: 56.33 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.37/14.11, allocations: 19.86 kB / 0.5887 GB, free: 56.31 MB / 446.1 MB " [Timeout remaining time 646] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.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_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable smpm.is[1] in file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.csv. Warning: Get data of variable smpm.is[1] from file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.csv failed! Error: Could not read variable smpm.is[2] in file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.csv. Warning: Get data of variable smpm.is[2] from file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.csv failed! Error: Could not read variable inertiaLoad.w in file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.csv. Warning: Get data of variable inertiaLoad.w from file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.csv failed! Error: Could not read variable multiSensor.flange_a.phi in file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.csv. Warning: Get data of variable multiSensor.flange_a.phi from file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.10421597957611]