Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0013/0.0013, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00132/0.00132, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.505/1.505, allocations: 227.7 MB / 247 MB, free: 10.29 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001977/0.001977, allocations: 66.08 kB / 307.3 MB, free: 388 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1315/0.1335, allocations: 50.53 MB / 357.9 MB, free: 13.83 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.009088/0.1427, allocations: 6.087 MB / 364 MB, free: 7.711 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00404/0.1468, allocations: 1.548 MB / 365.5 MB, free: 6.156 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005563/0.1474, allocations: 20 kB / 365.5 MB, free: 6.137 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000396/0.1478, allocations: 174.2 kB / 365.7 MB, free: 5.965 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006304/0.1485, allocations: 285.3 kB / 366 MB, free: 5.684 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001107/0.1496, allocations: 411.3 kB / 366.4 MB, free: 5.281 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001633/0.1512, allocations: 1.395 MB / 367.8 MB, free: 3.879 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006541/0.1519, allocations: 433.2 kB / 368.2 MB, free: 3.434 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007647/0.1527, allocations: 494.5 kB / 368.7 MB, free: 2.949 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007289/0.1534, allocations: 0.5757 MB / 369.2 MB, free: 2.371 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002098/0.1536, allocations: 136 kB / 369.4 MB, free: 2.238 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003697/0.154, allocations: 184 kB / 369.6 MB, free: 2.059 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002912/0.1543, allocations: 275.1 kB / 369.8 MB, free: 1.789 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006084/0.1549, allocations: 0.5795 MB / 370.4 MB, free: 1.207 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2173/0.3722, allocations: 1.521 MB / 371.9 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.716e-06/0.3723, allocations: 0.5312 kB / 371.9 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.437e-06/0.3723, allocations: 3.656 kB / 371.9 MB, free: 12.96 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.061e-05/0.3723, allocations: 6.766 kB / 371.9 MB, free: 12.96 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: 221 * Number of variables: 221 Notification: Performance of Generate backend data structure: time 0.002937/0.3753, allocations: 1.38 MB / 373.3 MB, free: 12.27 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.738e-05/0.3753, allocations: 8.969 kB / 373.3 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001636/0.3755, allocations: 137.5 kB / 373.5 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003832/0.3759, allocations: 128.8 kB / 373.6 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007189/0.3766, allocations: 0.5419 MB / 374.1 MB, free: 11.88 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.121e-05/0.3767, allocations: 69.56 kB / 374.2 MB, free: 11.88 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001518/0.3769, allocations: 90.97 kB / 374.3 MB, free: 11.88 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001688/0.3786, allocations: 0.8534 MB / 375.1 MB, free: 11.81 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.015e-05/0.3786, allocations: 0.5 kB / 375.1 MB, free: 11.81 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.949e-05/0.3787, allocations: 37.77 kB / 375.2 MB, free: 11.81 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.914e-05/0.3787, allocations: 20.91 kB / 375.2 MB, free: 11.81 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001748/0.3805, allocations: 0.8611 MB / 376.1 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005734/0.3862, allocations: 3.234 MB / 379.3 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001276/0.3875, allocations: 0.6665 MB / 380 MB, free: 10.28 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007686/0.3883, allocations: 426.1 kB / 380.4 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.271e-05/0.3884, allocations: 18.81 kB / 380.4 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.368e-05/0.3884, allocations: 44.39 kB / 380.4 MB, free: 10.05 MB / 302.1 MB Notification: Performance of pre-optimization done (n=69): time 2.755e-06/0.3885, allocations: 0 / 380.4 MB, free: 10.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.005171/0.3936, allocations: 2.266 MB / 382.7 MB, free: 8.887 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.185e-05/0.3937, allocations: 59.78 kB / 382.8 MB, free: 8.82 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009777/0.3947, allocations: 0.6079 MB / 383.4 MB, free: 8.539 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.804e-05/0.3948, allocations: 37.58 kB / 383.4 MB, free: 8.5 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003031/0.3951, allocations: 446.6 kB / 383.8 MB, free: 8.148 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001909/0.3953, allocations: 256.7 kB / 384.1 MB, free: 7.953 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002898/0.3956, allocations: 151 kB / 384.2 MB, free: 7.875 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.3957, allocations: 384.4 kB / 384.6 MB, free: 7.531 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006775/0.3964, allocations: 325.7 kB / 384.9 MB, free: 7.402 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008615/0.3973, allocations: 474.5 kB / 385.4 MB, free: 7.121 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001528/0.3988, allocations: 0.8003 MB / 386.2 MB, free: 6.668 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/0.3989, allocations: 6.625 kB / 386.2 MB, free: 6.664 MB / 302.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002509/0.4014, allocations: 1.119 MB / 387.3 MB, free: 6.207 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.622e-05/0.4014, allocations: 8.562 kB / 387.3 MB, free: 6.207 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.592e-05/0.4014, allocations: 6.656 kB / 387.3 MB, free: 6.203 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006748/0.4021, allocations: 191.8 kB / 387.5 MB, free: 6.148 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009758/0.4031, allocations: 196.8 kB / 387.7 MB, free: 6.145 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003776/0.4069, allocations: 2.891 MB / 390.6 MB, free: 3.926 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009064/0.4078, allocations: 42.77 kB / 390.6 MB, free: 3.902 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.877e-05/0.4079, allocations: 32.14 kB / 390.7 MB, free: 3.898 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (90): * Single equations (assignments): 89 * 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 {(5,13,72.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000563/0.4085, allocations: 227.5 kB / 390.9 MB, free: 3.719 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000201/0.4087, allocations: 83.69 kB / 391 MB, free: 3.676 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001894/0.4089, allocations: 96.75 kB / 391.1 MB, free: 3.602 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.354e-05/0.4089, allocations: 7 kB / 391.1 MB, free: 3.602 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.353e-05/0.409, allocations: 3.75 kB / 391.1 MB, free: 3.602 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.479e-05/0.409, allocations: 9.859 kB / 391.1 MB, free: 3.598 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001361/0.4104, allocations: 0.8806 MB / 392 MB, free: 3.145 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.334e-06/0.4104, allocations: 5.156 kB / 392 MB, free: 3.141 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007935/0.4112, allocations: 144.5 kB / 392.1 MB, free: 3.137 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005547/0.4117, allocations: 189 kB / 392.3 MB, free: 3.082 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.4e-05/0.4118, allocations: 18.31 kB / 392.3 MB, free: 3.074 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003522/0.4153, allocations: 2.886 MB / 395.2 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.4153, allocations: 4 kB / 395.2 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002688/0.418, allocations: 1.427 MB / 396.6 MB, free: 164 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001968/0.4183, allocations: 150.8 kB / 396.8 MB, free: 20 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001071/0.4184, allocations: 17.09 kB / 396.8 MB, free: 8 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006432/0.419, allocations: 52.36 kB / 396.9 MB, free: 0 / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002071/0.4192, allocations: 51.5 kB / 396.9 MB, free: 0 / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.876e-05/0.4193, allocations: 25.58 kB / 396.9 MB, free: 0 / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007354/0.4201, allocations: 428 kB / 397.4 MB, free: 15.76 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4201, allocations: 0 / 397.4 MB, free: 15.76 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001142/0.4212, allocations: 243.1 kB / 397.6 MB, free: 15.73 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (C1.v,C4.v,C5.v,C2.v,C3.v,Transistor1.ct.v,Transistor1.Tr.vcs,Transistor2.ct.v,Transistor2.Tr.vcs) * 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 (56): * Single equations (assignments): 55 * 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 {(5,13,72.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003302/0.4245, allocations: 2.012 MB / 399.6 MB, free: 14.37 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002907/0.4275, allocations: 1.067 MB / 400.7 MB, free: 13.8 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.4275, allocations: 0 / 400.7 MB, free: 13.8 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001457/0.4289, allocations: 0.6366 MB / 401.3 MB, free: 13.43 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000897/0.4299, allocations: 152.8 kB / 401.5 MB, free: 13.33 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01399/0.4439, allocations: 7.732 MB / 409.2 MB, free: 5.418 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007937/0.4447, allocations: 0.984 MB / 410.2 MB, free: 4.41 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004953/0.4452, allocations: 93.45 kB / 410.3 MB, free: 4.316 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004717/0.4457, allocations: 315.3 kB / 410.6 MB, free: 4.008 MB / 318.1 MB Notification: Performance of SimCode: time 7.81e-07/0.4457, allocations: 0 / 410.6 MB, free: 4.008 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06363/0.5093, allocations: 18.68 MB / 429.2 MB, free: 1.629 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/11.87, allocations: 8 kB / 429.3 MB, free: 1.621 MB / 334.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_DifferenceAmplifier_fmu --startTime=0 --stopTime=1e-08 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_DifferenceAmplifier.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1)