Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.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: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001085/0.001085, allocations: 96.73 kB / 17.01 MB, free: 6.109 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001041/0.001041, allocations: 197 kB / 17.91 MB, free: 5.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.483/1.483, allocations: 227.7 MB / 246.4 MB, free: 11.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002667/0.000267, allocations: 8 kB / 307.1 MB, free: 1.176 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.121, allocations: 51.53 MB / 358.6 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.007813/0.1289, allocations: 7.14 MB / 365.8 MB, free: 6.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004908/0.1339, allocations: 2.499 MB / 368.3 MB, free: 3.977 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009468/0.1348, allocations: 23.94 kB / 368.3 MB, free: 3.953 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001469/0.1363, allocations: 465.3 kB / 368.8 MB, free: 3.496 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001306/0.1377, allocations: 389.1 kB / 369.1 MB, free: 3.113 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005353/0.1382, allocations: 159.8 kB / 369.3 MB, free: 2.957 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001751/0.14, allocations: 1.319 MB / 370.6 MB, free: 1.633 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008355/0.1408, allocations: 435.2 kB / 371 MB, free: 1.191 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001092/0.1419, allocations: 457.9 kB / 371.5 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006655/0.1426, allocations: 0.4938 MB / 372 MB, free: 252 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001266/0.1427, allocations: 64 kB / 372 MB, free: 188 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000345/0.1431, allocations: 104 kB / 372.1 MB, free: 84 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2172/0.3603, allocations: 184.2 kB / 372.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004833/0.3608, allocations: 259.8 kB / 372.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001704/0.3625, allocations: 1.35 MB / 373.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.713e-06/0.3625, allocations: 4.016 kB / 373.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.3625, allocations: 0.6875 kB / 373.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.094e-05/0.3626, allocations: 0 / 373.9 MB, free: 10.61 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.002226/0.3648, allocations: 1.263 MB / 375.2 MB, free: 9.863 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/0.3649, allocations: 9.562 kB / 375.2 MB, free: 9.863 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007168/0.3656, allocations: 190.6 kB / 375.4 MB, free: 9.801 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001315/0.3669, allocations: 0.6957 MB / 376.1 MB, free: 9.508 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.803e-05/0.367, allocations: 76.81 kB / 376.2 MB, free: 9.504 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001906/0.3672, allocations: 105.2 kB / 376.3 MB, free: 9.496 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001943/0.3692, allocations: 0.9314 MB / 377.2 MB, free: 9.379 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.702e-05/0.3692, allocations: 6.312 kB / 377.2 MB, free: 9.375 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.969e-05/0.3693, allocations: 39.38 kB / 377.2 MB, free: 9.375 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.342e-05/0.3694, allocations: 23.38 kB / 377.3 MB, free: 9.375 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00124/0.3706, allocations: 0.6409 MB / 377.9 MB, free: 9.367 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005574/0.3762, allocations: 3.946 MB / 381.8 MB, free: 7.645 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007595/0.377, allocations: 435.5 kB / 382.3 MB, free: 7.523 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005749/0.3776, allocations: 262 kB / 382.5 MB, free: 7.512 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.512e-05/0.3776, allocations: 11.73 kB / 382.5 MB, free: 7.508 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.872e-05/0.3777, allocations: 37.23 kB / 382.6 MB, free: 7.469 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 3.376e-06/0.3777, allocations: 1.125 kB / 382.6 MB, free: 7.469 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.002871/0.3805, allocations: 1.413 MB / 384 MB, free: 6.875 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.167e-05/0.3806, allocations: 85.08 kB / 384.1 MB, free: 6.781 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001127/0.3817, allocations: 0.8207 MB / 384.9 MB, free: 6.641 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.46e-05/0.3818, allocations: 31.55 kB / 384.9 MB, free: 6.609 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003694/0.3821, allocations: 0.5541 MB / 385.5 MB, free: 6.328 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001126/0.3823, allocations: 156.1 kB / 385.6 MB, free: 6.23 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.884e-05/0.3823, allocations: 20.38 kB / 385.6 MB, free: 6.227 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.751e-05/0.3824, allocations: 337.1 kB / 386 MB, free: 5.918 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003571/0.3828, allocations: 167.8 kB / 386.1 MB, free: 5.914 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000495/0.3833, allocations: 461.3 kB / 386.6 MB, free: 5.551 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005279/0.3838, allocations: 246.4 kB / 386.8 MB, free: 5.535 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.131e-06/0.3838, allocations: 3.312 kB / 386.8 MB, free: 5.535 MB / 302.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001275/0.3851, allocations: 0.7619 MB / 387.6 MB, free: 5.426 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.478e-05/0.3851, allocations: 12.56 kB / 387.6 MB, free: 5.422 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.718e-05/0.3852, allocations: 10.91 kB / 387.6 MB, free: 5.422 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002831/0.3855, allocations: 83.34 kB / 387.7 MB, free: 5.406 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004992/0.386, allocations: 156.9 kB / 387.9 MB, free: 5.406 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001731/0.3877, allocations: 2.878 MB / 390.7 MB, free: 2.816 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006701/0.3884, allocations: 38.53 kB / 390.8 MB, free: 2.812 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.448e-05/0.3885, allocations: 40.48 kB / 390.8 MB, free: 2.809 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004567/0.3889, allocations: 256.2 kB / 391.1 MB, free: 2.688 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000123/0.389, allocations: 85.53 kB / 391.1 MB, free: 2.645 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009115/0.39, allocations: 0.4901 MB / 391.6 MB, free: 2.426 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.06e-06/0.39, allocations: 8.156 kB / 391.6 MB, free: 2.422 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.39, allocations: 1.406 kB / 391.6 MB, free: 2.422 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.39, allocations: 6.469 kB / 391.6 MB, free: 2.418 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002064/0.3921, allocations: 1.459 MB / 393.1 MB, free: 1.613 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.3921, allocations: 1.969 kB / 393.1 MB, free: 1.613 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003017/0.3924, allocations: 66.25 kB / 393.2 MB, free: 1.613 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002033/0.3926, allocations: 76.33 kB / 393.2 MB, free: 1.582 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.813e-05/0.3927, allocations: 13.31 kB / 393.3 MB, free: 1.574 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001852/0.3945, allocations: 2.853 MB / 396.1 MB, free: 14.78 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.711e-06/0.3945, allocations: 9.125 kB / 396.1 MB, free: 14.77 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001263/0.3958, allocations: 0.7728 MB / 396.9 MB, free: 14.3 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003469/0.3962, allocations: 196.4 kB / 397.1 MB, free: 14.11 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001118/0.3963, allocations: 16.64 kB / 397.1 MB, free: 14.1 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004188/0.3967, allocations: 30.7 kB / 397.1 MB, free: 14.09 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.668e-05/0.3968, allocations: 41.62 kB / 397.2 MB, free: 14.06 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.726e-05/0.3968, allocations: 14.59 kB / 397.2 MB, free: 14.06 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008141/0.3976, allocations: 0.5578 MB / 397.7 MB, free: 13.73 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3977, allocations: 0 / 397.7 MB, free: 13.73 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000981/0.3986, allocations: 205.6 kB / 397.9 MB, free: 13.71 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002084/0.3989, allocations: 119 kB / 398.1 MB, free: 13.62 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00118/0.4, allocations: 0.6977 MB / 398.8 MB, free: 13.21 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.4001, allocations: 0.6875 kB / 398.8 MB, free: 13.21 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006168/0.4007, allocations: 446.2 kB / 399.2 MB, free: 12.89 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001147/0.4018, allocations: 219.7 kB / 399.4 MB, free: 12.78 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003681/0.4055, allocations: 2.103 MB / 401.5 MB, free: 11.29 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008471/0.4064, allocations: 1.008 MB / 402.5 MB, free: 10.45 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006727/0.4071, allocations: 102.5 kB / 402.6 MB, free: 10.39 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001297/0.4072, allocations: 54.53 kB / 402.7 MB, free: 10.38 MB / 318.1 MB Notification: Performance of SimCode: time 7.71e-07/0.4072, allocations: 0 / 402.7 MB, free: 10.38 MB / 318.1 MB Notification: Performance of Templates: time 0.01908/0.4263, allocations: 9.682 MB / 412.4 MB, free: 3.211 MB / 318.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches