Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Physiolibrary_Physiolibrary.Thermal.Examples.MuscleHeat.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo", uses=false) Using package Physiolibrary with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo) Running command: translateModel(Physiolibrary.Thermal.Examples.MuscleHeat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Thermal.Examples.MuscleHeat") translateModel(Physiolibrary.Thermal.Examples.MuscleHeat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Thermal.Examples.MuscleHeat") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.09254/0.09254, allocations: 15.28 MB / 30.91 MB, free: 4.148 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001106/0.001105, allocations: 106 kB / 35.91 MB, free: 3.199 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001278/0.001279, allocations: 194.1 kB / 41.02 MB, free: 7.133 MB / 34.91 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.319/1.319, allocations: 222.9 MB / 268.9 MB, free: 6.809 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1258/0.1258, allocations: 23.35 MB / 346.6 MB, free: 0.6523 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001917/0.001917, allocations: 115.8 kB / 478.8 MB, free: 1.805 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.301/0.3029, allocations: 59.34 MB / 0.5256 GB, free: 8.098 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/Thermal.mo:312:7-312:66:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/Thermal.mo:312:7-312:66:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Physiolibrary.Thermal.Examples.MuscleHeat): time 0.03297/0.336, allocations: 21.84 MB / 0.5469 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0011/0.3371, allocations: 477 kB / 0.5474 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001432/0.3372, allocations: 4 kB / 0.5474 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001276/0.3374, allocations: 27.2 kB / 0.5474 GB, free: 12.91 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001168/0.3375, allocations: 55.64 kB / 0.5474 GB, free: 12.86 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001282/0.3376, allocations: 22.83 kB / 0.5475 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002003/0.3378, allocations: 153.1 kB / 0.5476 GB, free: 12.7 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001203/0.338, allocations: 33.61 kB / 0.5476 GB, free: 12.67 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.054e-05/0.338, allocations: 50.94 kB / 0.5477 GB, free: 12.62 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001193/0.3382, allocations: 54.08 kB / 0.5477 GB, free: 12.58 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.155e-05/0.3382, allocations: 8 kB / 0.5477 GB, free: 12.57 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.091e-05/0.3382, allocations: 8 kB / 0.5478 GB, free: 12.56 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.593e-05/0.3383, allocations: 15.25 kB / 0.5478 GB, free: 12.55 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.494e-05/0.3383, allocations: 71.83 kB / 0.5478 GB, free: 12.48 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001761/0.3385, allocations: 119.5 kB / 0.5479 GB, free: 12.39 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.3385, allocations: 0.6562 kB / 0.5479 GB, free: 12.39 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3385, allocations: 0 / 0.5479 GB, free: 12.39 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.709e-06/0.3385, allocations: 0 / 0.5479 GB, free: 12.39 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0005107/0.3391, allocations: 442.5 kB / 0.5484 GB, free: 11.93 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.423e-05/0.3391, allocations: 8.031 kB / 0.5484 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.704e-05/0.3391, allocations: 13.5 kB / 0.5484 GB, free: 11.91 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002557/0.3394, allocations: 230.7 kB / 0.5486 GB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.753e-06/0.3394, allocations: 384 / 0.5486 GB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.522e-05/0.3395, allocations: 8.375 kB / 0.5486 GB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001486/0.3396, allocations: 81.88 kB / 0.5487 GB, free: 11.58 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.3396, allocations: 0 / 0.5487 GB, free: 11.58 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.113e-05/0.3396, allocations: 0 / 0.5487 GB, free: 11.58 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.783e-06/0.3397, allocations: 0.6094 kB / 0.5487 GB, free: 11.58 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.965e-05/0.3397, allocations: 43.73 kB / 0.5487 GB, free: 11.54 MB / 398.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006061/0.3404, allocations: 483.1 kB / 0.5492 GB, free: 11.03 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001176/0.3405, allocations: 62.19 kB / 0.5493 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.875e-05/0.3405, allocations: 35.02 kB / 0.5493 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.678e-06/0.3406, allocations: 0 / 0.5493 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.088e-05/0.3406, allocations: 39.16 kB / 0.5493 GB, free: 10.88 MB / 398.1 MB Notification: Performance of pre-optimization done (n=5): time 9.12e-07/0.3406, allocations: 4 kB / 0.5493 GB, free: 10.88 MB / 398.1 MB Notification: Performance of matching and sorting (n=5): time 0.0001968/0.3408, allocations: 80.98 kB / 0.5494 GB, free: 10.8 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.254e-05/0.3408, allocations: 56.05 kB / 0.5495 GB, free: 10.73 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001734/0.341, allocations: 183.9 kB / 0.5496 GB, free: 10.56 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.354e-05/0.341, allocations: 25.7 kB / 0.5497 GB, free: 10.53 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001049/0.3411, allocations: 116.5 kB / 0.5498 GB, free: 10.41 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.28e-05/0.3412, allocations: 25.36 kB / 0.5498 GB, free: 10.39 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.215e-05/0.3412, allocations: 14.47 kB / 0.5498 GB, free: 10.37 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001044/0.3413, allocations: 327.3 kB / 0.5501 GB, free: 10.05 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.643e-05/0.3413, allocations: 8.75 kB / 0.5501 GB, free: 10.04 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.223e-05/0.3414, allocations: 13.5 kB / 0.5501 GB, free: 10.03 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002624/0.3416, allocations: 71.69 kB / 0.5502 GB, free: 9.961 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.3417, allocations: 0 / 0.5502 GB, free: 9.961 MB / 398.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001066/0.3418, allocations: 80.38 kB / 0.5503 GB, free: 9.879 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/0.3418, allocations: 6.969 kB / 0.5503 GB, free: 9.875 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.3418, allocations: 4.703 kB / 0.5503 GB, free: 9.871 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.366e-05/0.3418, allocations: 0 / 0.5503 GB, free: 9.871 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.186e-05/0.3419, allocations: 9.172 kB / 0.5503 GB, free: 9.863 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.394e-06/0.3419, allocations: 7.875 kB / 0.5503 GB, free: 9.855 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.28e-05/0.342, allocations: 4.594 kB / 0.5503 GB, free: 9.852 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.404e-06/0.342, allocations: 8.422 kB / 0.5503 GB, free: 9.844 MB / 398.1 MB Warning: Assuming fixed start value for the following 1 variables: muscle.relativeHeat:VARIABLE(flow=false start = muscle.relativeHeat_start unit = "J" fixed = true nominal = 4.1868e6 ) "Current accumulated heat = weight*(T - 37degC)*specificHeat" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (6): * Single equations (assignments): 6 * 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 0.0001327/0.3421, allocations: 123.9 kB / 0.5504 GB, free: 9.715 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.489e-05/0.3421, allocations: 19.81 kB / 0.5505 GB, free: 9.695 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.877e-05/0.3422, allocations: 15.53 kB / 0.5505 GB, free: 9.68 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-06/0.3422, allocations: 0 / 0.5505 GB, free: 9.68 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.3422, allocations: 3.938 kB / 0.5505 GB, free: 9.676 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.3422, allocations: 0.6094 kB / 0.5505 GB, free: 9.676 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002304/0.3424, allocations: 202.7 kB / 0.5507 GB, free: 9.445 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.3425, allocations: 0.75 kB / 0.5507 GB, free: 9.445 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.253e-05/0.3425, allocations: 4.656 kB / 0.5507 GB, free: 9.441 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.028e-06/0.3425, allocations: 8.828 kB / 0.5507 GB, free: 9.434 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.124e-05/0.3426, allocations: 8 kB / 0.5507 GB, free: 9.426 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.3426, allocations: 0 / 0.5507 GB, free: 9.426 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.3426, allocations: 3.938 kB / 0.5507 GB, free: 9.422 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002012/0.3428, allocations: 188.3 kB / 0.5509 GB, free: 9.227 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.642e-05/0.3428, allocations: 91.72 kB / 0.551 GB, free: 9.121 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.041e-05/0.3429, allocations: 0.5625 kB / 0.551 GB, free: 9.121 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.042e-05/0.3429, allocations: 0 / 0.551 GB, free: 9.121 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.999e-05/0.343, allocations: 9.281 kB / 0.551 GB, free: 9.113 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.617e-06/0.343, allocations: 8.062 kB / 0.551 GB, free: 9.105 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001151/0.3431, allocations: 131.4 kB / 0.5511 GB, free: 8.988 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3431, allocations: 0 / 0.5511 GB, free: 8.988 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002228/0.3433, allocations: 24 kB / 0.5511 GB, free: 8.965 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (muscle.relativeHeat) * 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 (5): * Single equations (assignments): 5 * 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 7.645e-05/0.3434, allocations: 95.8 kB / 0.5512 GB, free: 8.859 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001695/0.3436, allocations: 38.52 kB / 0.5513 GB, free: 8.824 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.3436, allocations: 0 / 0.5513 GB, free: 8.824 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.085e-05/0.3436, allocations: 18.06 kB / 0.5513 GB, free: 8.809 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004203/0.3441, allocations: 62.97 kB / 0.5513 GB, free: 8.762 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005217/0.3446, allocations: 330.1 kB / 0.5517 GB, free: 8.43 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003109/0.3449, allocations: 0.7065 MB / 0.5523 GB, free: 7.711 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.254e-05/0.345, allocations: 16.14 kB / 0.5524 GB, free: 7.699 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.619e-05/0.345, allocations: 11.44 kB / 0.5524 GB, free: 7.688 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.345, allocations: 0 / 0.5524 GB, free: 7.688 MB / 398.1 MB Notification: Performance of Templates: time 0.004383/0.3494, allocations: 1.806 MB / 0.5541 GB, free: 6.645 MB / 398.1 MB make -j1 -f Physiolibrary_Physiolibrary.Thermal.Examples.MuscleHeat.makefile (rm -f Physiolibrary_Physiolibrary.Thermal.Examples.MuscleHeat.pipe ; mkfifo Physiolibrary_Physiolibrary.Thermal.Examples.MuscleHeat.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Thermal.Examples.MuscleHeat.pipe >> ../files/Physiolibrary_Physiolibrary.Thermal.Examples.MuscleHeat.sim & ./Physiolibrary_Physiolibrary.Thermal.Examples.MuscleHeat -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Thermal.Examples.MuscleHeat.pipe 2>&1)