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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007074/0.0007074, allocations: 92.97 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008407/0.000841, allocations: 202.4 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.186/1.186, allocations: 227.7 MB / 246.8 MB, free: 9.707 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002017/0.0002016, allocations: 8 kB / 307.8 MB, free: 0.5312 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07519/0.07541, allocations: 51.53 MB / 359.4 MB, free: 13 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.008968/0.0844, allocations: 10.3 MB / 369.7 MB, free: 2.648 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1452/0.2296, allocations: 3.582 MB / 373.2 MB, free: 9.852 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001902/0.2315, allocations: 59.84 kB / 373.3 MB, free: 9.852 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001712/0.2333, allocations: 0.7152 MB / 374 MB, free: 9.848 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002164/0.2354, allocations: 0.7779 MB / 374.8 MB, free: 9.816 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008911/0.2363, allocations: 406.8 kB / 375.2 MB, free: 9.809 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003448/0.2398, allocations: 3.261 MB / 378.5 MB, free: 9.305 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002376/0.2422, allocations: 2.284 MB / 380.7 MB, free: 8.781 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001614/0.2438, allocations: 1.042 MB / 381.8 MB, free: 8.52 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001607/0.2454, allocations: 1.456 MB / 383.2 MB, free: 7.969 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002768/0.2457, allocations: 152.2 kB / 383.4 MB, free: 7.969 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006552/0.2464, allocations: 273.4 kB / 383.7 MB, free: 7.941 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007581/0.2471, allocations: 0.8047 MB / 384.5 MB, free: 7.613 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001174/0.2483, allocations: 1.398 MB / 385.9 MB, free: 6.723 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003353/0.2517, allocations: 4.57 MB / 390.4 MB, free: 4.293 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.2517, allocations: 0 / 390.4 MB, free: 4.293 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2517, allocations: 3.938 kB / 390.4 MB, free: 4.289 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.992e-05/0.2518, allocations: 1.25 kB / 390.4 MB, free: 4.289 MB / 302.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.004972/0.2568, allocations: 2.858 MB / 393.3 MB, free: 2.352 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.243e-05/0.2568, allocations: 9.625 kB / 393.3 MB, free: 2.352 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004139/0.2572, allocations: 373.6 kB / 393.7 MB, free: 2.074 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008305/0.2581, allocations: 347.6 kB / 394 MB, free: 1.902 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002386/0.2605, allocations: 1.773 MB / 395.8 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001439/0.2606, allocations: 194.1 kB / 396 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003297/0.261, allocations: 259.6 kB / 396.2 MB, free: 496 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004723/0.2657, allocations: 3.283 MB / 399.5 MB, free: 14.55 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.676e-05/0.2658, allocations: 10.77 kB / 399.5 MB, free: 14.55 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000213/0.266, allocations: 100.8 kB / 399.6 MB, free: 14.47 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001006/0.2661, allocations: 127.3 kB / 399.7 MB, free: 14.45 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004158/0.2702, allocations: 2.758 MB / 402.5 MB, free: 12.52 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01348/0.2837, allocations: 10.51 MB / 413 MB, free: 1.727 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001626/0.2854, allocations: 1.373 MB / 414.4 MB, free: 304 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001139/0.2865, allocations: 0.793 MB / 415.2 MB, free: 15.5 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000249/0.2868, allocations: 205.7 kB / 415.4 MB, free: 15.26 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.765e-05/0.2868, allocations: 43.56 kB / 415.4 MB, free: 15.21 MB / 334.1 MB Notification: Performance of pre-optimization done (n=98): time 2.584e-06/0.2868, allocations: 4 kB / 415.4 MB, free: 15.21 MB / 334.1 MB Notification: Performance of matching and sorting (n=123): time 0.01383/0.3007, allocations: 6.962 MB / 422.4 MB, free: 8.141 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.353e-05/0.3007, allocations: 64.41 kB / 422.4 MB, free: 8.062 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002439/0.3032, allocations: 1.79 MB / 424.2 MB, free: 6.273 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.092e-05/0.3033, allocations: 49.7 kB / 424.3 MB, free: 6.219 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007936/0.3041, allocations: 1.267 MB / 425.6 MB, free: 4.938 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002953/0.3044, allocations: 428.1 kB / 426 MB, free: 4.523 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001741/0.3046, allocations: 129.6 kB / 426.1 MB, free: 4.391 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.406e-05/0.3047, allocations: 309.1 kB / 426.4 MB, free: 4.086 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001085/0.3058, allocations: 0.7769 MB / 427.2 MB, free: 3.309 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001388/0.3071, allocations: 1.29 MB / 428.5 MB, free: 1.789 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002593/0.3098, allocations: 2.224 MB / 430.7 MB, free: 15.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.865e-06/0.3098, allocations: 4 kB / 430.7 MB, free: 15.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003577/0.3134, allocations: 2.474 MB / 433.2 MB, free: 12.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.022e-05/0.3134, allocations: 15.94 kB / 433.2 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.794e-05/0.3134, allocations: 20.03 kB / 433.2 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005791/0.314, allocations: 239.2 kB / 433.4 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001352/0.3154, allocations: 419.3 kB / 433.8 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002135/0.3175, allocations: 3.009 MB / 436.9 MB, free: 8.875 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001308/0.3188, allocations: 139.7 kB / 437 MB, free: 8.738 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001131/0.319, allocations: 75.98 kB / 437.1 MB, free: 8.664 MB / 350.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.001313/0.3203, allocations: 0.8167 MB / 437.9 MB, free: 7.84 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002584/0.3205, allocations: 185.7 kB / 438.1 MB, free: 7.656 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003012/0.3236, allocations: 2.046 MB / 440.1 MB, free: 5.586 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.837e-06/0.3236, allocations: 16 kB / 440.1 MB, free: 5.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.3236, allocations: 0 / 440.1 MB, free: 5.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.178e-05/0.3236, allocations: 4.125 kB / 440.1 MB, free: 5.566 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00646/0.3301, allocations: 4.76 MB / 444.9 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.3301, allocations: 8.062 kB / 444.9 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001002/0.3311, allocations: 263.6 kB / 445.2 MB, free: 484 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004685/0.3316, allocations: 195.3 kB / 445.3 MB, free: 276 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.61e-05/0.3317, allocations: 27.98 kB / 445.4 MB, free: 248 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002053/0.3337, allocations: 2.982 MB / 448.4 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/0.3337, allocations: 4 kB / 448.4 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003977/0.3377, allocations: 3.141 MB / 451.5 MB, free: 9.797 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007011/0.3384, allocations: 434.6 kB / 451.9 MB, free: 9.352 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002067/0.3387, allocations: 31.92 kB / 452 MB, free: 9.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008916/0.3395, allocations: 99.94 kB / 452 MB, free: 9.223 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001502/0.3397, allocations: 76.83 kB / 452.1 MB, free: 9.148 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.934e-05/0.3398, allocations: 32 kB / 452.2 MB, free: 9.117 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001625/0.3414, allocations: 1.232 MB / 453.4 MB, free: 7.895 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3414, allocations: 0 / 453.4 MB, free: 7.895 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001399/0.3428, allocations: 488 kB / 453.9 MB, free: 7.418 MB / 366.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.004334/0.3472, allocations: 3.784 MB / 457.6 MB, free: 3.566 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003047/0.3502, allocations: 2.347 MB / 460 MB, free: 1.156 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.3502, allocations: 8 kB / 460 MB, free: 1.148 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001609/0.3519, allocations: 1.335 MB / 461.3 MB, free: 15.74 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002486/0.3544, allocations: 470.5 kB / 461.8 MB, free: 15.29 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02921/0.3836, allocations: 21.85 MB / 483.6 MB, free: 7.77 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001508/0.3851, allocations: 2.006 MB / 485.7 MB, free: 5.727 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001391/0.3865, allocations: 0.496 MB / 486.1 MB, free: 5.227 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001161/0.3877, allocations: 1.015 MB / 487.2 MB, free: 4.215 MB / 398.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3877, allocations: 0 / 487.2 MB, free: 4.215 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06474/0.4524, allocations: 43.47 MB / 0.5182 GB, free: 9.184 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001806/0.4526, allocations: 261.4 kB / 0.5184 GB, free: 8.926 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.358/2.811, allocations: 0 / 0.5184 GB, free: 8.926 MB / 446.1 MB (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 --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) 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.0.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) Reference file matches