Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.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.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001161/0.001161, allocations: 118.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001378/0.001378, allocations: 198 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.337/1.337, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2021/0.2021, allocations: 46.09 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001695/0.001695, allocations: 75.86 kB / 480.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3041/0.3058, allocations: 62.43 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.00192/0.3078, allocations: 0.819 MB / 0.5313 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001887/0.308, allocations: 41.36 kB / 0.5313 GB, free: 12.77 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.157e-05/0.3081, allocations: 1.625 kB / 0.5313 GB, free: 12.77 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001182/0.3082, allocations: 15.88 kB / 0.5314 GB, free: 12.75 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.527e-05/0.3082, allocations: 0 / 0.5314 GB, free: 12.75 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001081/0.3083, allocations: 16.3 kB / 0.5314 GB, free: 12.74 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001033/0.3085, allocations: 38.28 kB / 0.5314 GB, free: 12.72 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001041/0.3086, allocations: 28.89 kB / 0.5314 GB, free: 12.7 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.544e-05/0.3086, allocations: 7.562 kB / 0.5314 GB, free: 12.7 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.001e-05/0.3087, allocations: 17.67 kB / 0.5315 GB, free: 12.68 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.377e-05/0.3087, allocations: 3.594 kB / 0.5315 GB, free: 12.68 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.689e-06/0.3087, allocations: 3.594 kB / 0.5315 GB, free: 12.68 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.654e-05/0.3087, allocations: 4 kB / 0.5315 GB, free: 12.68 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.203e-05/0.3088, allocations: 20.03 kB / 0.5315 GB, free: 12.66 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 9.674e-05/0.3089, allocations: 44.25 kB / 0.5315 GB, free: 12.62 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.3089, allocations: 0 / 0.5315 GB, free: 12.62 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3089, allocations: 1.344 kB / 0.5315 GB, free: 12.62 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.189e-06/0.3089, allocations: 0 / 0.5315 GB, free: 12.62 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004604/0.3093, allocations: 355.7 kB / 0.5319 GB, free: 12.24 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.255e-05/0.3094, allocations: 9.344 kB / 0.5319 GB, free: 12.24 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.045e-05/0.3094, allocations: 32.53 kB / 0.5319 GB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.752e-05/0.3095, allocations: 13.06 kB / 0.5319 GB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002099/0.3097, allocations: 178.4 kB / 0.5321 GB, free: 11.99 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.073e-06/0.3097, allocations: 3.781 kB / 0.5321 GB, free: 11.99 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.589e-05/0.3097, allocations: 8.359 kB / 0.5321 GB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001085/0.3098, allocations: 50.03 kB / 0.5322 GB, free: 11.94 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.3098, allocations: 3.938 kB / 0.5322 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.1e-05/0.3099, allocations: 4.875 kB / 0.5322 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.3099, allocations: 1.625 kB / 0.5322 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.21e-05/0.3099, allocations: 12.16 kB / 0.5322 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004554/0.3104, allocations: 293.7 kB / 0.5325 GB, free: 11.61 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.685e-05/0.3104, allocations: 25.73 kB / 0.5325 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.491e-05/0.3105, allocations: 4.859 kB / 0.5325 GB, free: 11.58 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.081e-06/0.3105, allocations: 3.938 kB / 0.5325 GB, free: 11.57 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.025e-05/0.3106, allocations: 58.03 kB / 0.5325 GB, free: 11.51 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 1.232e-06/0.3106, allocations: 2.438 kB / 0.5325 GB, free: 11.51 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001343/0.3107, allocations: 55.78 kB / 0.5326 GB, free: 11.46 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.055e-05/0.3108, allocations: 51.41 kB / 0.5326 GB, free: 11.4 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.073e-05/0.3108, allocations: 120.5 kB / 0.5328 GB, free: 11.29 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.345e-05/0.3109, allocations: 25.7 kB / 0.5328 GB, free: 11.26 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.945e-05/0.3109, allocations: 88.05 kB / 0.5329 GB, free: 11.17 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.42e-05/0.3109, allocations: 11.25 kB / 0.5329 GB, free: 11.16 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.17e-05/0.311, allocations: 20.91 kB / 0.5329 GB, free: 11.14 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.3111, allocations: 318.8 kB / 0.5332 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.725e-05/0.3111, allocations: 7.812 kB / 0.5332 GB, free: 10.81 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.379e-05/0.3111, allocations: 18.75 kB / 0.5332 GB, free: 10.79 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.07e-05/0.3112, allocations: 29.39 kB / 0.5333 GB, free: 10.77 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.3112, allocations: 3.938 kB / 0.5333 GB, free: 10.76 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.664e-05/0.3113, allocations: 53.41 kB / 0.5333 GB, free: 10.72 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.314e-05/0.3113, allocations: 9.375 kB / 0.5333 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.3113, allocations: 1.094 kB / 0.5333 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.215e-05/0.3113, allocations: 1.391 kB / 0.5333 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.195e-05/0.3114, allocations: 6.516 kB / 0.5333 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.11e-06/0.3114, allocations: 1.312 kB / 0.5333 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.311e-05/0.3114, allocations: 13.91 kB / 0.5333 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.729e-06/0.3114, allocations: 1.25 kB / 0.5333 GB, free: 10.7 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.747e-05/0.3115, allocations: 112.5 kB / 0.5335 GB, free: 10.58 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.658e-06/0.3115, allocations: 1.531 kB / 0.5335 GB, free: 10.58 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.31e-05/0.3116, allocations: 17.23 kB / 0.5335 GB, free: 10.56 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.3116, allocations: 1.312 kB / 0.5335 GB, free: 10.56 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.3116, allocations: 0 / 0.5335 GB, free: 10.56 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.3116, allocations: 5.344 kB / 0.5335 GB, free: 10.56 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002612/0.3118, allocations: 292.6 kB / 0.5338 GB, free: 10.24 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.3119, allocations: 3.984 kB / 0.5338 GB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.988e-05/0.3119, allocations: 2.25 kB / 0.5338 GB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.572e-06/0.3119, allocations: 384 / 0.5338 GB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.578e-06/0.3119, allocations: 4.75 kB / 0.5338 GB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.3119, allocations: 5.281 kB / 0.5338 GB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.3119, allocations: 0 / 0.5338 GB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001314/0.3121, allocations: 155.7 kB / 0.5339 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.412e-05/0.3121, allocations: 82.05 kB / 0.534 GB, free: 9.977 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.428e-05/0.3121, allocations: 4.844 kB / 0.534 GB, free: 9.973 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.891e-05/0.3122, allocations: 9.234 kB / 0.534 GB, free: 9.965 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.439e-05/0.3122, allocations: 1.281 kB / 0.534 GB, free: 9.965 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.661e-06/0.3122, allocations: 5.281 kB / 0.534 GB, free: 9.961 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.399e-05/0.3123, allocations: 96.05 kB / 0.5341 GB, free: 9.875 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3123, allocations: 1.094 kB / 0.5341 GB, free: 9.875 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002174/0.3125, allocations: 4.438 kB / 0.5341 GB, free: 9.875 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003702/0.3129, allocations: 0.6744 MB / 0.5348 GB, free: 9.203 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.057e-05/0.313, allocations: 27.27 kB / 0.5348 GB, free: 9.188 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.313, allocations: 0 / 0.5348 GB, free: 9.188 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.644e-05/0.313, allocations: 6.938 kB / 0.5348 GB, free: 9.188 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002645/0.3133, allocations: 19.95 kB / 0.5348 GB, free: 9.172 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00105/0.3143, allocations: 1.275 MB / 0.5361 GB, free: 7.926 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002398/0.3146, allocations: 0.6871 MB / 0.5367 GB, free: 7.223 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.07e-05/0.3146, allocations: 5.688 kB / 0.5367 GB, free: 7.219 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.429e-05/0.3147, allocations: 17.56 kB / 0.5368 GB, free: 7.203 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3147, allocations: 0 / 0.5368 GB, free: 7.203 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01719/0.3319, allocations: 1.564 MB / 0.5383 GB, free: 6.328 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.379/7.711, allocations: 10.09 kB / 0.5383 GB, free: 6.324 MB / 398.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,integrator.y Variables in the result:const.k,const.y,der(integrator.y),greaterEqualThreshold.threshold,greaterEqualThreshold.u,greaterEqualThreshold.y,integrator.initType,integrator.k,integrator.reset,integrator.u,integrator.use_reset,integrator.use_set,integrator.y,integrator.y_start,time