Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001778/0.001778, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002238/0.002238, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.464/1.464, allocations: 227.4 MB / 247 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2293/0.2293, allocations: 46.12 MB / 344.4 MB, free: 11.4 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002253/0.002253, allocations: 76.08 kB / 480.9 MB, free: 4.469 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3371/0.3394, allocations: 62.46 MB / 0.5306 GB, free: 13.33 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003436/0.3429, allocations: 1.909 MB / 0.5325 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001071/0.344, allocations: 0.5576 MB / 0.533 GB, free: 11.4 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.327e-05/0.3441, allocations: 5.781 kB / 0.533 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001289/0.3443, allocations: 23.02 kB / 0.533 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000102/0.3444, allocations: 48.28 kB / 0.5331 GB, free: 11.33 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002347/0.3446, allocations: 47.66 kB / 0.5331 GB, free: 11.29 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002097/0.3448, allocations: 150.2 kB / 0.5333 GB, free: 11.2 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001741/0.345, allocations: 60.06 kB / 0.5333 GB, free: 11.17 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001734/0.3452, allocations: 63.67 kB / 0.5334 GB, free: 11.13 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001188/0.3453, allocations: 67.02 kB / 0.5335 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.346e-05/0.3454, allocations: 11 kB / 0.5335 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.872e-05/0.3454, allocations: 14.97 kB / 0.5335 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.544e-05/0.3455, allocations: 35.53 kB / 0.5335 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.998e-05/0.3455, allocations: 65.52 kB / 0.5336 GB, free: 11.01 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002434/0.3458, allocations: 157.1 kB / 0.5337 GB, free: 10.9 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.3458, allocations: 0 / 0.5337 GB, free: 10.9 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3458, allocations: 4 kB / 0.5337 GB, free: 10.9 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.3458, allocations: 1.406 kB / 0.5337 GB, free: 10.9 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006309/0.3465, allocations: 441.1 kB / 0.5342 GB, free: 10.46 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.962e-05/0.3465, allocations: 9.844 kB / 0.5342 GB, free: 10.46 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.142e-05/0.3466, allocations: 48.36 kB / 0.5342 GB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001421/0.3467, allocations: 24.42 kB / 0.5342 GB, free: 10.4 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002893/0.347, allocations: 206.1 kB / 0.5344 GB, free: 10.18 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.64e-05/0.347, allocations: 17.34 kB / 0.5345 GB, free: 10.16 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.684e-05/0.3471, allocations: 17.61 kB / 0.5345 GB, free: 10.16 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000264/0.3473, allocations: 131 kB / 0.5346 GB, free: 10.07 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.3474, allocations: 1.562 kB / 0.5346 GB, free: 10.07 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.731e-05/0.3474, allocations: 5.375 kB / 0.5346 GB, free: 10.06 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.3474, allocations: 6.688 kB / 0.5346 GB, free: 10.06 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001822/0.3476, allocations: 79.95 kB / 0.5347 GB, free: 10.02 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00077/0.3484, allocations: 465.6 kB / 0.5351 GB, free: 9.602 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002445/0.3486, allocations: 124.2 kB / 0.5352 GB, free: 9.527 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001112/0.3487, allocations: 57.7 kB / 0.5353 GB, free: 9.496 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.489e-05/0.3488, allocations: 2.75 kB / 0.5353 GB, free: 9.496 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.515e-05/0.3488, allocations: 38.5 kB / 0.5353 GB, free: 9.449 MB / 398.1 MB Notification: Performance of pre-optimization done (n=13): time 1.422e-06/0.3488, allocations: 5.375 kB / 0.5353 GB, free: 9.445 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001522/0.3503, allocations: 0.809 MB / 0.5361 GB, free: 8.777 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.789e-05/0.3504, allocations: 58.03 kB / 0.5362 GB, free: 8.711 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001388/0.3505, allocations: 146 kB / 0.5363 GB, free: 8.586 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.054e-05/0.3506, allocations: 30.95 kB / 0.5364 GB, free: 8.551 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.085e-05/0.3507, allocations: 117.8 kB / 0.5365 GB, free: 8.434 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.601e-05/0.3507, allocations: 67.17 kB / 0.5365 GB, free: 8.375 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001126/0.3508, allocations: 38.11 kB / 0.5366 GB, free: 8.344 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001514/0.351, allocations: 322.1 kB / 0.5369 GB, free: 8.023 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001024/0.3511, allocations: 42.98 kB / 0.5369 GB, free: 8.004 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001276/0.3512, allocations: 87.52 kB / 0.537 GB, free: 7.938 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002368/0.3515, allocations: 133.2 kB / 0.5371 GB, free: 7.852 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-06/0.3515, allocations: 0 / 0.5371 GB, free: 7.852 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003952/0.3519, allocations: 209.2 kB / 0.5373 GB, free: 7.727 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/0.3519, allocations: 13.86 kB / 0.5373 GB, free: 7.719 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.3519, allocations: 5.078 kB / 0.5373 GB, free: 7.715 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001669/0.3521, allocations: 38.06 kB / 0.5374 GB, free: 7.695 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001728/0.3523, allocations: 43.75 kB / 0.5374 GB, free: 7.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001623/0.3539, allocations: 1.737 MB / 0.5391 GB, free: 5.965 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.5e-05/0.354, allocations: 2.406 kB / 0.5391 GB, free: 5.965 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.292e-05/0.3541, allocations: 13.03 kB / 0.5391 GB, free: 5.957 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001316/0.3542, allocations: 125.8 kB / 0.5393 GB, free: 5.832 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.967e-05/0.3542, allocations: 18.45 kB / 0.5393 GB, free: 5.82 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.648e-05/0.3543, allocations: 18.5 kB / 0.5393 GB, free: 5.809 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.3543, allocations: 6.531 kB / 0.5393 GB, free: 5.805 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.3543, allocations: 1.344 kB / 0.5393 GB, free: 5.805 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.3543, allocations: 0 / 0.5393 GB, free: 5.805 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008529/0.3552, allocations: 0.5547 MB / 0.5398 GB, free: 5.316 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.3552, allocations: 1 kB / 0.5398 GB, free: 5.316 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001696/0.3554, allocations: 43.41 kB / 0.5399 GB, free: 5.301 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001135/0.3555, allocations: 28.16 kB / 0.5399 GB, free: 5.285 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.278e-05/0.3555, allocations: 1.188 kB / 0.5399 GB, free: 5.285 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001267/0.3568, allocations: 1.486 MB / 0.5414 GB, free: 3.777 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.3568, allocations: 4.062 kB / 0.5414 GB, free: 3.773 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005446/0.3574, allocations: 344.3 kB / 0.5417 GB, free: 3.523 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.762e-05/0.3574, allocations: 88.89 kB / 0.5418 GB, free: 3.422 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.077e-05/0.3575, allocations: 5.688 kB / 0.5418 GB, free: 3.418 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.72e-05/0.3576, allocations: 10.61 kB / 0.5418 GB, free: 3.41 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.663e-05/0.3576, allocations: 18.8 kB / 0.5418 GB, free: 3.398 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.171e-05/0.3576, allocations: 3.844 kB / 0.5418 GB, free: 3.398 MB / 398.1 MB Notification: Performance of sorting global known variables: time 9.199e-05/0.3577, allocations: 112 kB / 0.5419 GB, free: 3.309 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.3577, allocations: 3.938 kB / 0.5419 GB, free: 3.305 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003621/0.3581, allocations: 38.56 kB / 0.542 GB, free: 3.301 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.w) * 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 (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008681/0.359, allocations: 0.8828 MB / 0.5428 GB, free: 2.508 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005324/0.3595, allocations: 258.9 kB / 0.5431 GB, free: 2.328 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.3596, allocations: 5.5 kB / 0.5431 GB, free: 2.324 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002785/0.3598, allocations: 191.6 kB / 0.5433 GB, free: 2.176 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003556/0.3602, allocations: 24.62 kB / 0.5433 GB, free: 2.16 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002661/0.3629, allocations: 2.066 MB / 0.5453 GB, free: 428 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003719/0.3633, allocations: 0.7166 MB / 0.546 GB, free: 15.7 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.995e-05/0.3633, allocations: 12.67 kB / 0.546 GB, free: 15.7 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.718e-05/0.3634, allocations: 42.23 kB / 0.5461 GB, free: 15.66 MB / 414.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3634, allocations: 4 kB / 0.5461 GB, free: 15.66 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03428/0.3977, allocations: 3.437 MB / 0.5494 GB, free: 13.62 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.47/10.87, allocations: 14.02 kB / 0.5494 GB, free: 13.61 MB / 414.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,J2.phi,J2.w Variables in the result:J1.J,J1.a,J1.flange_a.phi,J1.flange_a.tau,J1.flange_b.phi,J1.flange_b.tau,J1.phi,J1.stateSelect,J1.w,J2.J,J2.a,J2.flange_a.phi,J2.flange_a.tau,J2.flange_b.phi,J2.flange_b.tau,J2.phi,J2.stateSelect,J2.w,der(J1.phi),der(J1.w),der(J2.phi),der(J2.w),der(der(gear.phi_a)),der(der(gear.phi_b)),der(gear.phi_a),der(gear.phi_b),fixed.flange.phi,fixed.flange.tau,fixed.phi0,gear.flange_a.phi,gear.flange_a.tau,gear.flange_b.phi,gear.flange_b.tau,gear.phi_a,gear.phi_b,gear.ratio,gear.support.phi,gear.support.tau,gear.useSupport,sine.amplitude,sine.continuous,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time,torque.flange.phi,torque.flange.tau,torque.support.phi,torque.support.tau,torque.tau,torque.useSupport