Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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.SynchronousInductionMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00131/0.00131, allocations: 106.5 kB / 17.73 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001124/0.001124, allocations: 191 kB / 18.66 MB, free: 4.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.324/1.324, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00119/0.00119, allocations: 51.92 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07865/0.07985, allocations: 46.62 MB / 374.7 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.1633/0.2432, allocations: 11.59 MB / 386.3 MB, free: 6.863 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006675/0.2499, allocations: 3.953 MB / 390.2 MB, free: 4.473 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001871/0.2519, allocations: 65.22 kB / 390.3 MB, free: 4.453 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0021/0.254, allocations: 0.8709 MB / 391.1 MB, free: 3.969 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002896/0.2569, allocations: 0.9487 MB / 392.1 MB, free: 3.363 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001222/0.2581, allocations: 0.5222 MB / 392.6 MB, free: 3.035 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00362/0.2618, allocations: 3.299 MB / 395.9 MB, free: 1.387 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003292/0.2651, allocations: 2.982 MB / 398.9 MB, free: 132 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002554/0.2676, allocations: 1.542 MB / 400.4 MB, free: 15.37 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00327/0.2709, allocations: 1.966 MB / 402.4 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009665/0.2719, allocations: 422.5 kB / 402.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001398/0.2733, allocations: 0.5285 MB / 403.3 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001316/0.2747, allocations: 1.227 MB / 404.6 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002506/0.2772, allocations: 1.88 MB / 406.5 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006163/0.2834, allocations: 5.513 MB / 412 MB, free: 8.559 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.152e-06/0.2834, allocations: 0 / 412 MB, free: 8.559 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2834, allocations: 0 / 412 MB, free: 8.559 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001763/0.2836, allocations: 1.312 kB / 412 MB, free: 8.559 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: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.008701/0.2923, allocations: 3.813 MB / 415.8 MB, free: 5.949 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.424e-05/0.2924, allocations: 12.95 kB / 415.8 MB, free: 5.945 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008138/0.2932, allocations: 414.8 kB / 416.2 MB, free: 5.637 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001129/0.2943, allocations: 391.1 kB / 416.6 MB, free: 5.445 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00368/0.298, allocations: 1.944 MB / 418.5 MB, free: 3.961 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000172/0.2982, allocations: 214 kB / 418.7 MB, free: 3.75 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004672/0.2987, allocations: 287.8 kB / 419 MB, free: 3.469 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006594/0.3053, allocations: 3.697 MB / 422.7 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.754e-05/0.3054, allocations: 7.906 kB / 422.7 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000282/0.3057, allocations: 116 kB / 422.8 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001383/0.3058, allocations: 149.4 kB / 423 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005342/0.3112, allocations: 3.102 MB / 426.1 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01819/0.3294, allocations: 11.51 MB / 437.6 MB, free: 484 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002402/0.3318, allocations: 1.909 MB / 439.5 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00172/0.3336, allocations: 1.08 MB / 440.6 MB, free: 13.36 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002902/0.3339, allocations: 211.2 kB / 440.8 MB, free: 13.12 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.751e-05/0.3339, allocations: 47.56 kB / 440.8 MB, free: 13.06 MB / 366.1 MB Notification: Performance of pre-optimization done (n=125): time 2.885e-06/0.3339, allocations: 0 / 440.8 MB, free: 13.06 MB / 366.1 MB Notification: Performance of matching and sorting (n=140): time 0.01282/0.3468, allocations: 6.519 MB / 447.3 MB, free: 6.41 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.432e-05/0.3469, allocations: 64.72 kB / 447.4 MB, free: 6.336 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003076/0.3499, allocations: 1.986 MB / 449.4 MB, free: 4.309 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002005/0.3502, allocations: 53.64 kB / 449.4 MB, free: 4.25 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001021/0.3512, allocations: 1.416 MB / 450.9 MB, free: 2.816 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004926/0.3517, allocations: 481 kB / 451.3 MB, free: 2.34 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004978/0.3522, allocations: 335.2 kB / 451.7 MB, free: 2.004 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.965e-05/0.3523, allocations: 305.1 kB / 452 MB, free: 1.703 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001268/0.3536, allocations: 0.8198 MB / 452.8 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001566/0.3551, allocations: 1.379 MB / 454.2 MB, free: 15.25 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002994/0.3582, allocations: 2.364 MB / 456.5 MB, free: 12.64 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.155e-05/0.3582, allocations: 4 kB / 456.5 MB, free: 12.64 MB / 382.1 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.004669/0.3629, allocations: 2.854 MB / 459.4 MB, free: 9.746 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.837e-05/0.3629, allocations: 16.03 kB / 459.4 MB, free: 9.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.012e-05/0.3629, allocations: 20 kB / 459.4 MB, free: 9.711 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009389/0.3639, allocations: 383.2 kB / 459.8 MB, free: 9.324 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001601/0.3655, allocations: 435.2 kB / 460.2 MB, free: 8.898 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006434/0.372, allocations: 6.706 MB / 466.9 MB, free: 1.777 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001806/0.3738, allocations: 127.7 kB / 467 MB, free: 1.652 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002455/0.374, allocations: 75.98 kB / 467.1 MB, free: 1.578 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 80 * 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 (210): * Single equations (assignments): 206 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 3 systems {(2,9,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001749/0.3758, allocations: 0.9155 MB / 468 MB, free: 0.6523 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005823/0.3764, allocations: 209.4 kB / 468.2 MB, free: 456 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004185/0.3806, allocations: 2.425 MB / 470.7 MB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-05/0.3806, allocations: 15.94 kB / 470.7 MB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.033e-05/0.3806, allocations: 4 kB / 470.7 MB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.5e-05/0.3807, allocations: 11.97 kB / 470.7 MB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01022/0.3909, allocations: 5.501 MB / 476.2 MB, free: 8.293 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.19e-05/0.3909, allocations: 8.094 kB / 476.2 MB, free: 8.285 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001139/0.3921, allocations: 267.5 kB / 476.5 MB, free: 8.023 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001/0.3931, allocations: 399 kB / 476.9 MB, free: 7.621 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001246/0.3932, allocations: 39.98 kB / 476.9 MB, free: 7.582 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007395/0.4006, allocations: 8.25 MB / 485.1 MB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.533e-06/0.4007, allocations: 7.938 kB / 485.2 MB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005507/0.4062, allocations: 3.599 MB / 488.8 MB, free: 11.06 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001119/0.4073, allocations: 466.3 kB / 489.2 MB, free: 10.59 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005127/0.4079, allocations: 32 kB / 489.2 MB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00125/0.4091, allocations: 99.88 kB / 489.3 MB, free: 10.46 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002199/0.4094, allocations: 97.06 kB / 489.4 MB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.924e-05/0.4095, allocations: 47.98 kB / 489.5 MB, free: 10.31 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00232/0.4118, allocations: 1.361 MB / 490.8 MB, free: 8.93 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4118, allocations: 4 kB / 490.8 MB, free: 8.926 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002156/0.414, allocations: 0.5352 MB / 491.4 MB, free: 8.391 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * 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 (129): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,9,100.0%), (1,1,100.0%), (1,6,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.005815/0.4198, allocations: 4.254 MB / 495.6 MB, free: 4.023 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003862/0.4237, allocations: 2.495 MB / 498.1 MB, free: 1.469 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.902e-06/0.4237, allocations: 0 / 498.1 MB, free: 1.469 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002052/0.4258, allocations: 1.496 MB / 499.6 MB, free: 15.92 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002918/0.4287, allocations: 0.5393 MB / 0.4884 GB, free: 15.38 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03536/0.4641, allocations: 21.24 MB / 0.5092 GB, free: 9.301 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002411/0.4665, allocations: 2.209 MB / 0.5113 GB, free: 7.062 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001595/0.4682, allocations: 0.4979 MB / 0.5118 GB, free: 6.562 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001608/0.4698, allocations: 1.136 MB / 0.5129 GB, free: 5.426 MB / 446.1 MB Notification: Performance of SimCode: time 9.92e-07/0.4698, allocations: 0 / 0.5129 GB, free: 5.426 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2838/0.7536, allocations: 52.82 MB / 0.5645 GB, free: 152.5 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.78/13.53, allocations: 7.125 kB / 0.5645 GB, free: 152.5 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches