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.001703/0.001703, allocations: 118.7 kB / 18.49 MB, free: 4.559 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.00204/0.00204, allocations: 212.7 kB / 21.46 MB, free: 1.605 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.459/1.459, allocations: 230.4 MB / 254.7 MB, free: 15.03 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001856/0.001856, allocations: 59.91 kB / 373.7 MB, free: 10.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09893/0.1008, allocations: 53.38 MB / 427.1 MB, free: 4.605 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.198/0.2988, allocations: 11 MB / 438.1 MB, free: 5.234 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00773/0.3065, allocations: 3.683 MB / 441.8 MB, free: 3.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003056/0.3096, allocations: 84.81 kB / 441.8 MB, free: 3.215 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003254/0.3128, allocations: 0.8756 MB / 442.7 MB, free: 2.742 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004297/0.3171, allocations: 0.9125 MB / 443.6 MB, free: 2.156 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001338/0.3185, allocations: 470.7 kB / 444.1 MB, free: 1.867 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003634/0.3221, allocations: 2.953 MB / 447 MB, free: 388 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002642/0.3247, allocations: 1.985 MB / 449 MB, free: 15.47 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002399/0.3271, allocations: 1.415 MB / 450.4 MB, free: 14.8 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003055/0.3302, allocations: 1.789 MB / 452.2 MB, free: 13.98 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007546/0.3309, allocations: 377.7 kB / 452.6 MB, free: 13.98 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001334/0.3323, allocations: 487.2 kB / 453.1 MB, free: 13.95 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001194/0.3335, allocations: 1.078 MB / 454.2 MB, free: 13.36 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002386/0.3359, allocations: 1.675 MB / 455.8 MB, free: 12.26 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006324/0.3422, allocations: 4.913 MB / 460.7 MB, free: 9.383 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.3422, allocations: 4 kB / 460.7 MB, free: 9.379 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.083e-06/0.3422, allocations: 1 kB / 460.7 MB, free: 9.379 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001355/0.3423, allocations: 0 / 460.7 MB, free: 9.379 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.009528/0.3519, allocations: 3.48 MB / 464.2 MB, free: 6.953 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.138e-05/0.3519, allocations: 10.34 kB / 464.2 MB, free: 6.953 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001199/0.352, allocations: 65.81 kB / 464.3 MB, free: 6.945 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007052/0.3527, allocations: 367.2 kB / 464.7 MB, free: 6.672 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001223/0.354, allocations: 366.2 kB / 465 MB, free: 6.484 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003917/0.3579, allocations: 1.839 MB / 466.9 MB, free: 5.172 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001716/0.358, allocations: 194.5 kB / 467 MB, free: 5.078 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004491/0.3585, allocations: 247.6 kB / 467.3 MB, free: 4.996 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006558/0.365, allocations: 3.285 MB / 470.6 MB, free: 3.051 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.453e-05/0.3651, allocations: 2.781 kB / 470.6 MB, free: 3.051 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002435/0.3654, allocations: 105.2 kB / 470.7 MB, free: 2.969 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001168/0.3655, allocations: 122.6 kB / 470.8 MB, free: 2.949 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004898/0.3704, allocations: 2.746 MB / 473.5 MB, free: 1.551 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01906/0.3894, allocations: 10.4 MB / 484 MB, free: 7.199 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001993/0.3914, allocations: 1.302 MB / 485.3 MB, free: 5.832 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001261/0.3927, allocations: 0.7008 MB / 486 MB, free: 5.121 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003114/0.393, allocations: 207.2 kB / 486.2 MB, free: 4.883 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.413e-05/0.393, allocations: 39.56 kB / 486.2 MB, free: 4.836 MB / 382.1 MB Notification: Performance of pre-optimization done (n=98): time 3.036e-06/0.393, allocations: 8 kB / 486.2 MB, free: 4.828 MB / 382.1 MB Notification: Performance of matching and sorting (n=123): time 0.01605/0.4091, allocations: 6.946 MB / 493.1 MB, free: 13.77 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.759e-05/0.4091, allocations: 68.41 kB / 493.2 MB, free: 13.7 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002847/0.412, allocations: 1.794 MB / 495 MB, free: 11.9 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001099/0.4121, allocations: 45.7 kB / 495.1 MB, free: 11.85 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009917/0.4131, allocations: 1.302 MB / 496.4 MB, free: 10.54 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003918/0.4135, allocations: 452.1 kB / 496.8 MB, free: 10.09 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004856/0.414, allocations: 291.5 kB / 497.1 MB, free: 9.797 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001337/0.4141, allocations: 313 kB / 497.4 MB, free: 9.488 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001232/0.4153, allocations: 0.773 MB / 498.2 MB, free: 8.715 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001617/0.4169, allocations: 1.292 MB / 499.5 MB, free: 7.199 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002983/0.4199, allocations: 2.206 MB / 0.4899 GB, free: 4.762 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.536e-06/0.4199, allocations: 8 kB / 0.4899 GB, free: 4.754 MB / 398.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004174/0.4241, allocations: 2.487 MB / 0.4923 GB, free: 2.246 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.632e-05/0.4241, allocations: 12 kB / 0.4923 GB, free: 2.234 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.334e-05/0.4242, allocations: 17.56 kB / 0.4924 GB, free: 2.219 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000641/0.4248, allocations: 243.6 kB / 0.4926 GB, free: 1.969 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001483/0.4263, allocations: 423.3 kB / 0.493 GB, free: 1.555 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003113/0.4294, allocations: 3.233 MB / 0.4962 GB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00158/0.431, allocations: 127.8 kB / 0.4963 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001425/0.4311, allocations: 85.06 kB / 0.4964 GB, free: 13.83 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.001435/0.4326, allocations: 0.8095 MB / 0.4972 GB, free: 13.01 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003924/0.433, allocations: 194.8 kB / 0.4973 GB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003594/0.4365, allocations: 2.042 MB / 0.4993 GB, free: 10.76 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-05/0.4366, allocations: 12 kB / 0.4993 GB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.4366, allocations: 4 kB / 0.4993 GB, free: 10.74 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.334e-05/0.4366, allocations: 8.484 kB / 0.4994 GB, free: 10.73 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008397/0.445, allocations: 4.75 MB / 0.504 GB, free: 5.883 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.532e-06/0.445, allocations: 0 / 0.504 GB, free: 5.883 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001121/0.4461, allocations: 264.7 kB / 0.5042 GB, free: 5.625 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005843/0.4467, allocations: 203.2 kB / 0.5044 GB, free: 5.414 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.029e-05/0.4468, allocations: 24 kB / 0.5045 GB, free: 5.391 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002864/0.4496, allocations: 3.219 MB / 0.5076 GB, free: 1.895 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.197e-06/0.4496, allocations: 3.938 kB / 0.5076 GB, free: 1.891 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004874/0.4545, allocations: 3.14 MB / 0.5107 GB, free: 14.7 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001016/0.4555, allocations: 439.7 kB / 0.5111 GB, free: 14.25 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002541/0.4558, allocations: 27.94 kB / 0.5111 GB, free: 14.22 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009508/0.4567, allocations: 91.88 kB / 0.5112 GB, free: 14.13 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001852/0.4569, allocations: 80.89 kB / 0.5113 GB, free: 14.05 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.159e-05/0.457, allocations: 40.05 kB / 0.5113 GB, free: 14.02 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002048/0.459, allocations: 1.22 MB / 0.5125 GB, free: 12.8 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.459, allocations: 0 / 0.5125 GB, free: 12.8 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001916/0.461, allocations: 495.9 kB / 0.513 GB, free: 12.32 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.005814/0.4668, allocations: 3.78 MB / 0.5167 GB, free: 8.469 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003852/0.4706, allocations: 2.272 MB / 0.5189 GB, free: 6.129 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/0.4706, allocations: 4.125 kB / 0.5189 GB, free: 6.125 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00202/0.4727, allocations: 1.268 MB / 0.5201 GB, free: 4.789 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002705/0.4754, allocations: 0.4954 MB / 0.5206 GB, free: 4.32 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03058/0.5059, allocations: 18.78 MB / 0.539 GB, free: 0.793 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001935/0.5079, allocations: 2.014 MB / 0.5409 GB, free: 14.74 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001461/0.5093, allocations: 0.4921 MB / 0.5414 GB, free: 14.25 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001489/0.5108, allocations: 1.015 MB / 0.5424 GB, free: 13.23 MB / 462.1 MB Notification: Performance of SimCode: time 1.122e-06/0.5108, allocations: 0 / 0.5424 GB, free: 13.23 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09005/0.6009, allocations: 46.53 MB / 0.5878 GB, free: 15.1 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.45/14.05, allocations: 4.062 kB / 0.5878 GB, free: 15.1 MB / 0.4981 GB " [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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 657] Reference file matches [Calling sys.exit(0), Time elapsed: 22.777526773978025]