Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.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.001887/0.001887, allocations: 122.7 kB / 18.5 MB, free: 4.578 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.002369/0.002369, allocations: 210.5 kB / 21.46 MB, free: 1.625 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.513/1.513, allocations: 230.2 MB / 254.5 MB, free: 15.44 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.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001806/0.001806, allocations: 68.02 kB / 373.4 MB, free: 10.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.115, allocations: 53.32 MB / 426.7 MB, free: 5.02 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.2561/0.3711, allocations: 22.47 MB / 449.1 MB, free: 9.559 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01295/0.3841, allocations: 6.678 MB / 455.8 MB, free: 9.469 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004612/0.3887, allocations: 146.4 kB / 456 MB, free: 9.465 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004713/0.3934, allocations: 1.572 MB / 457.5 MB, free: 8.809 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007614/0.401, allocations: 2.128 MB / 459.7 MB, free: 7.777 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003695/0.4047, allocations: 1.347 MB / 461 MB, free: 7.055 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01032/0.415, allocations: 6.58 MB / 467.6 MB, free: 3.863 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006388/0.4214, allocations: 3.915 MB / 471.5 MB, free: 2.18 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006973/0.4284, allocations: 3.026 MB / 474.5 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008831/0.4372, allocations: 3.742 MB / 478.3 MB, free: 15.07 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003535/0.4408, allocations: 0.8174 MB / 479.1 MB, free: 15.07 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005915/0.4467, allocations: 1.126 MB / 480.2 MB, free: 14.99 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004201/0.4509, allocations: 2.042 MB / 482.3 MB, free: 13.68 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009099/0.46, allocations: 3.548 MB / 485.8 MB, free: 11.12 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01808/0.4781, allocations: 10.87 MB / 496.7 MB, free: 3.16 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.4781, allocations: 0 / 496.7 MB, free: 3.16 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.795e-06/0.4781, allocations: 0 / 496.7 MB, free: 3.16 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004697/0.4785, allocations: 0 / 496.7 MB, free: 3.16 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.02193/0.5005, allocations: 7.114 MB / 0.492 GB, free: 12.79 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.904e-05/0.5005, allocations: 8.031 kB / 0.492 GB, free: 12.79 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001515/0.502, allocations: 0.7448 MB / 0.4927 GB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005365/0.5074, allocations: 1.077 MB / 0.4938 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009656/0.517, allocations: 3.802 MB / 0.4975 GB, free: 7.141 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003823/0.5174, allocations: 406.1 kB / 0.4979 GB, free: 6.746 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001283/0.5187, allocations: 0.5218 MB / 0.4984 GB, free: 6.227 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01463/0.5333, allocations: 7.066 MB / 0.5053 GB, free: 15.1 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001366/0.5335, allocations: 15.95 kB / 0.5053 GB, free: 15.08 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005166/0.534, allocations: 215 kB / 0.5055 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002749/0.5343, allocations: 258.6 kB / 0.5058 GB, free: 14.62 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01199/0.5463, allocations: 5.957 MB / 0.5116 GB, free: 8.656 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05045/0.5967, allocations: 22.41 MB / 0.5335 GB, free: 1.871 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01067/0.6074, allocations: 8.341 MB / 0.5416 GB, free: 8.613 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004316/0.6117, allocations: 2.101 MB / 0.5437 GB, free: 6.504 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01457/0.6263, allocations: 6.466 MB / 0.55 GB, free: 15.92 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.9e-05/0.6263, allocations: 56.56 kB / 0.55 GB, free: 15.86 MB / 462.1 MB Notification: Performance of pre-optimization done (n=220): time 4.238e-06/0.6263, allocations: 0 / 0.55 GB, free: 15.86 MB / 462.1 MB Notification: Performance of matching and sorting (n=240): time 0.02568/0.652, allocations: 11.16 MB / 0.5609 GB, free: 4.469 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.749e-05/0.6521, allocations: 77.41 kB / 0.561 GB, free: 4.383 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007056/0.6591, allocations: 3.173 MB / 0.5641 GB, free: 1.211 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003385/0.6595, allocations: 65.7 kB / 0.5642 GB, free: 1.141 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002491/0.662, allocations: 2.586 MB / 0.5667 GB, free: 14.54 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001055/0.663, allocations: 0.8614 MB / 0.5675 GB, free: 13.69 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001321/0.6643, allocations: 0.5656 MB / 0.5681 GB, free: 13.11 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.6645, allocations: 301.1 kB / 0.5684 GB, free: 12.82 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002603/0.6671, allocations: 1.334 MB / 0.5697 GB, free: 11.48 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003394/0.6705, allocations: 2.342 MB / 0.572 GB, free: 8.691 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00621/0.6767, allocations: 3.924 MB / 0.5758 GB, free: 4.293 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-05/0.6767, allocations: 12 kB / 0.5758 GB, free: 4.281 MB / 478.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.00889/0.6856, allocations: 4.734 MB / 0.5804 GB, free: 15.44 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.682e-05/0.6856, allocations: 18.19 kB / 0.5804 GB, free: 15.43 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.281e-05/0.6857, allocations: 32.66 kB / 0.5805 GB, free: 15.39 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001298/0.687, allocations: 0.5535 MB / 0.581 GB, free: 14.82 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002732/0.6897, allocations: 0.741 MB / 0.5817 GB, free: 14.08 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01132/0.7011, allocations: 10.45 MB / 0.5919 GB, free: 2.934 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002937/0.704, allocations: 191.7 kB / 0.5921 GB, free: 2.746 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004791/0.7045, allocations: 144 kB / 0.5923 GB, free: 2.605 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * 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 (377): * Single equations (assignments): 370 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * 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): 5 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003441/0.7079, allocations: 1.57 MB / 0.5938 GB, free: 1.023 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00106/0.709, allocations: 369.6 kB / 0.5941 GB, free: 0.6602 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008344/0.7173, allocations: 4.053 MB / 0.5981 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.578e-05/0.7174, allocations: 27.94 kB / 0.5981 GB, free: 12.49 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.132e-05/0.7174, allocations: 8 kB / 0.5981 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.889e-05/0.7174, allocations: 11.95 kB / 0.5982 GB, free: 12.47 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01913/0.7365, allocations: 8.978 MB / 0.6069 GB, free: 3.348 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.571e-05/0.7366, allocations: 8 kB / 0.6069 GB, free: 3.34 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001812/0.7384, allocations: 408 kB / 0.6073 GB, free: 2.941 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001987/0.7404, allocations: 0.7628 MB / 0.6081 GB, free: 2.156 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002146/0.7406, allocations: 63.97 kB / 0.6081 GB, free: 2.094 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01858/0.7592, allocations: 16.91 MB / 0.6246 GB, free: 88 kB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.032e-06/0.7592, allocations: 4.188 kB / 0.6246 GB, free: 84 kB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01173/0.7709, allocations: 5.869 MB / 0.6304 GB, free: 10.05 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002465/0.7734, allocations: 0.7172 MB / 0.6311 GB, free: 9.316 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001128/0.7745, allocations: 59.98 kB / 0.6311 GB, free: 9.258 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002349/0.7768, allocations: 139.9 kB / 0.6313 GB, free: 9.121 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005218/0.7774, allocations: 181.6 kB / 0.6314 GB, free: 8.941 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002233/0.7776, allocations: 71.92 kB / 0.6315 GB, free: 8.871 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00477/0.7823, allocations: 2.143 MB / 0.6336 GB, free: 6.738 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7823, allocations: 0 / 0.6336 GB, free: 6.738 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004967/0.7873, allocations: 1 MB / 0.6346 GB, free: 5.738 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.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 (198): * Single equations (assignments): 190 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,5,100.0%), (3,12,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.2263/1.014, allocations: 6.566 MB / 0.641 GB, free: 172.6 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006873/1.02, allocations: 4.023 MB / 0.6449 GB, free: 171.8 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.086e-05/1.021, allocations: 1.594 kB / 0.6449 GB, free: 171.8 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00421/1.025, allocations: 2.664 MB / 0.6475 GB, free: 170.8 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004735/1.029, allocations: 0.9701 MB / 0.6485 GB, free: 170.7 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05724/1.087, allocations: 35.68 MB / 0.6833 GB, free: 153.6 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002681/1.089, allocations: 3.422 MB / 0.6867 GB, free: 152.1 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.002511/1.092, allocations: 0.8064 MB / 0.6874 GB, free: 151.5 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002087/1.094, allocations: 2.115 MB / 0.6895 GB, free: 149.5 MB / 0.5294 GB Notification: Performance of SimCode: time 1.182e-06/1.094, allocations: 0 / 0.6895 GB, free: 149.5 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1391/1.233, allocations: 89.43 MB / 0.7768 GB, free: 61.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.88/20.11, allocations: 12.86 kB / 0.7769 GB, free: 61.79 MB / 0.5294 GB " [Timeout remaining time 640] (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.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: 30.68413279298693]