Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.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_ResistiveBraking,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001288/0.001288, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001306/0.001306, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.417/1.417, allocations: 227.4 MB / 246.9 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001808/0.001808, allocations: 63.89 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2408/0.2426, allocations: 50.55 MB / 408.8 MB, free: 1.473 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01311/0.2558, allocations: 11.44 MB / 420.3 MB, free: 5.98 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006815/0.2626, allocations: 3.594 MB / 423.8 MB, free: 2.375 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001021/0.2637, allocations: 71.69 kB / 423.9 MB, free: 2.305 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001841/0.2655, allocations: 0.8383 MB / 424.8 MB, free: 1.461 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002071/0.2676, allocations: 0.9318 MB / 425.7 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007901/0.2684, allocations: 443.4 kB / 426.1 MB, free: 92 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003925/0.2724, allocations: 3.767 MB / 429.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003225/0.2756, allocations: 2.873 MB / 432.8 MB, free: 9.367 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002243/0.2779, allocations: 1.663 MB / 434.4 MB, free: 7.699 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002475/0.2803, allocations: 1.969 MB / 436.4 MB, free: 5.723 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006096/0.281, allocations: 420 kB / 436.8 MB, free: 5.312 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009407/0.2819, allocations: 0.4959 MB / 437.3 MB, free: 4.816 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00116/0.2831, allocations: 1.2 MB / 438.5 MB, free: 3.613 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002187/0.2853, allocations: 1.937 MB / 440.4 MB, free: 1.668 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005828/0.2911, allocations: 5.57 MB / 446 MB, free: 12.07 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.2911, allocations: 0 / 446 MB, free: 12.07 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2911, allocations: 0 / 446 MB, free: 12.07 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.462e-05/0.2912, allocations: 0 / 446 MB, free: 12.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: 739 * Number of variables: 739 Notification: Performance of Generate backend data structure: time 0.007265/0.2985, allocations: 3.907 MB / 449.9 MB, free: 8.094 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.2986, allocations: 12.03 kB / 449.9 MB, free: 8.082 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005201/0.2991, allocations: 413 kB / 450.3 MB, free: 7.668 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009515/0.3, allocations: 414.6 kB / 450.7 MB, free: 7.262 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003581/0.3036, allocations: 2.077 MB / 452.8 MB, free: 5.133 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001776/0.3038, allocations: 209.8 kB / 453 MB, free: 4.926 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004213/0.3043, allocations: 288 kB / 453.3 MB, free: 4.645 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006397/0.3107, allocations: 3.857 MB / 457.2 MB, free: 0.6992 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.93e-05/0.3108, allocations: 3.953 kB / 457.2 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002594/0.311, allocations: 120 kB / 457.3 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001275/0.3112, allocations: 125.5 kB / 457.4 MB, free: 464 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005409/0.3166, allocations: 3.246 MB / 460.6 MB, free: 13.2 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01857/0.3352, allocations: 11.82 MB / 472.5 MB, free: 1.059 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003554/0.3388, allocations: 3.645 MB / 476.1 MB, free: 12.99 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00216/0.341, allocations: 1.256 MB / 477.4 MB, free: 11.74 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002537/0.3412, allocations: 118.4 kB / 477.5 MB, free: 11.61 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.123e-05/0.3413, allocations: 51.88 kB / 477.5 MB, free: 11.55 MB / 398.1 MB Notification: Performance of pre-optimization done (n=136): time 3.126e-06/0.3413, allocations: 0 / 477.5 MB, free: 11.55 MB / 398.1 MB Notification: Performance of matching and sorting (n=151): time 0.01455/0.3558, allocations: 7.387 MB / 484.9 MB, free: 3.914 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.351e-05/0.3559, allocations: 68.72 kB / 485 MB, free: 3.836 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003209/0.3591, allocations: 2.056 MB / 487 MB, free: 1.738 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001362/0.3593, allocations: 53.7 kB / 487.1 MB, free: 1.68 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001198/0.3605, allocations: 1.413 MB / 488.5 MB, free: 260 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004879/0.361, allocations: 0.5385 MB / 489 MB, free: 15.71 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005622/0.3616, allocations: 347.4 kB / 489.4 MB, free: 15.36 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.3617, allocations: 305.1 kB / 489.7 MB, free: 15.06 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001382/0.3631, allocations: 0.8666 MB / 490.5 MB, free: 14.19 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001777/0.3649, allocations: 1.369 MB / 491.9 MB, free: 12.62 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003212/0.3681, allocations: 2.33 MB / 494.2 MB, free: 10.08 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.031e-05/0.3681, allocations: 7.938 kB / 494.3 MB, free: 10.07 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.006091/0.3742, allocations: 3.279 MB / 497.5 MB, free: 6.734 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.28e-05/0.3743, allocations: 12 kB / 497.5 MB, free: 6.723 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.984e-05/0.3743, allocations: 16 kB / 497.6 MB, free: 6.707 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002519/0.3768, allocations: 0.8407 MB / 498.4 MB, free: 5.832 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001357/0.3782, allocations: 355.4 kB / 498.7 MB, free: 5.484 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02098/0.3992, allocations: 20.59 MB / 0.5072 GB, free: 15.36 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001756/0.401, allocations: 91.95 kB / 0.5073 GB, free: 15.27 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001574/0.4012, allocations: 79.98 kB / 0.5073 GB, free: 15.19 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 2 (booleanReplicator3.y[3],booleanReplicator2.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (194): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(2,9,100.0%), (1,6,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (2,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001719/0.4029, allocations: 0.9338 MB / 0.5082 GB, free: 14.25 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003537/0.4032, allocations: 230.5 kB / 0.5085 GB, free: 14.02 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00457/0.4078, allocations: 2.637 MB / 0.511 GB, free: 11.32 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.49e-05/0.4079, allocations: 16 kB / 0.5111 GB, free: 11.31 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.598e-06/0.4079, allocations: 4 kB / 0.5111 GB, free: 11.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.4e-05/0.4079, allocations: 7.969 kB / 0.5111 GB, free: 11.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009434/0.4173, allocations: 5.883 MB / 0.5168 GB, free: 5.227 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.001e-05/0.4174, allocations: 7.938 kB / 0.5168 GB, free: 5.219 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007733/0.4181, allocations: 191.7 kB / 0.517 GB, free: 5.031 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001923/0.4201, allocations: 0.7422 MB / 0.5177 GB, free: 4.258 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.968e-05/0.4202, allocations: 32.09 kB / 0.5178 GB, free: 4.227 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01687/0.437, allocations: 18.17 MB / 0.5355 GB, free: 0.6641 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.039e-06/0.4371, allocations: 4 kB / 0.5355 GB, free: 0.6602 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2159/0.653, allocations: 3.803 MB / 0.5392 GB, free: 120.8 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009026/0.654, allocations: 491 kB / 0.5397 GB, free: 120.7 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002469/0.6542, allocations: 35.45 kB / 0.5397 GB, free: 120.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001009/0.6552, allocations: 111.2 kB / 0.5398 GB, free: 120.7 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003454/0.6556, allocations: 144.3 kB / 0.54 GB, free: 120.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.406e-05/0.6557, allocations: 40.42 kB / 0.54 GB, free: 120.7 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001643/0.6573, allocations: 1.405 MB / 0.5414 GB, free: 120.6 MB / 462.1 MB Notification: Performance of sort global known variables: time 6.91e-07/0.6573, allocations: 0 / 0.5414 GB, free: 120.6 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001888/0.6592, allocations: 0.6695 MB / 0.542 GB, free: 120.6 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(2,9,100.0%), (1,1,100.0%), (1,6,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,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.00469/0.6639, allocations: 4.458 MB / 0.5464 GB, free: 118.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003614/0.6676, allocations: 3.463 MB / 0.5498 GB, free: 116.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.6676, allocations: 3.609 kB / 0.5498 GB, free: 116.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001937/0.6695, allocations: 2.201 MB / 0.5519 GB, free: 115 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002595/0.6721, allocations: 0.6923 MB / 0.5526 GB, free: 114.8 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02582/0.698, allocations: 22.62 MB / 0.5747 GB, free: 93.82 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001399/0.6994, allocations: 2.288 MB / 0.5769 GB, free: 91.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001209/0.7006, allocations: 0.4989 MB / 0.5774 GB, free: 91 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009652/0.7016, allocations: 1.085 MB / 0.5785 GB, free: 89.92 MB / 462.1 MB Notification: Performance of SimCode: time 5.81e-07/0.7016, allocations: 0 / 0.5785 GB, free: 89.92 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1086/0.8102, allocations: 59.79 MB / 0.6369 GB, free: 30.78 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.07/14.88, allocations: 11.23 kB / 0.6369 GB, free: 30.77 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches