Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.conf.json 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) 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) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00181/0.00181, allocations: 103.1 kB / 17.06 MB, free: 6.129 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002731/0.002731, allocations: 195 kB / 18 MB, free: 5.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 3.12/3.12, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001683/0.001683, allocations: 51.92 kB / 350.8 MB, free: 3.727 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5684/0.5701, allocations: 49.43 MB / 400.3 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.01185/0.5821, allocations: 6.056 MB / 406.3 MB, free: 2.734 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005628/0.5878, allocations: 1.525 MB / 407.8 MB, free: 1.199 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001784/0.5896, allocations: 12 kB / 407.8 MB, free: 1.188 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001082/0.5907, allocations: 174.2 kB / 408 MB, free: 1.016 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002022/0.5928, allocations: 289.3 kB / 408.3 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002072/0.5949, allocations: 411.4 kB / 408.7 MB, free: 336 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003268/0.5983, allocations: 1.395 MB / 410.1 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001402/0.5997, allocations: 425.2 kB / 410.5 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001455/0.6012, allocations: 0.4906 MB / 411 MB, free: 14 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001593/0.6028, allocations: 0.5758 MB / 411.6 MB, free: 13.42 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005529/0.6034, allocations: 132 kB / 411.7 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007465/0.6042, allocations: 172 kB / 411.9 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004732/0.6047, allocations: 271.2 kB / 412.1 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002173/0.6069, allocations: 0.5871 MB / 412.7 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003144/0.6101, allocations: 1.536 MB / 414.3 MB, free: 10.73 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.506e-06/0.6101, allocations: 0 / 414.3 MB, free: 10.73 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.6102, allocations: 0 / 414.3 MB, free: 10.73 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.735e-05/0.6102, allocations: 0 / 414.3 MB, free: 10.73 MB / 334.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.005451/0.6157, allocations: 1.372 MB / 415.6 MB, free: 9.305 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.828e-05/0.6158, allocations: 11.89 kB / 415.6 MB, free: 9.293 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003742/0.6162, allocations: 143.6 kB / 415.8 MB, free: 9.145 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004079/0.6166, allocations: 111.6 kB / 415.9 MB, free: 9.035 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001748/0.6184, allocations: 0.5576 MB / 416.5 MB, free: 8.438 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001001/0.6185, allocations: 70.38 kB / 416.5 MB, free: 8.367 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003063/0.6188, allocations: 88.38 kB / 416.6 MB, free: 8.281 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003119/0.622, allocations: 0.8547 MB / 417.5 MB, free: 7.422 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.808e-05/0.622, allocations: 0 / 417.5 MB, free: 7.422 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001803/0.6222, allocations: 40 kB / 417.5 MB, free: 7.383 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.803e-05/0.6223, allocations: 20 kB / 417.5 MB, free: 7.363 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003277/0.6256, allocations: 0.855 MB / 418.4 MB, free: 6.508 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01129/0.6369, allocations: 3.223 MB / 421.6 MB, free: 3.156 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002215/0.6392, allocations: 0.6684 MB / 422.3 MB, free: 2.48 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00142/0.6407, allocations: 435.1 kB / 422.7 MB, free: 2.051 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001071/0.6408, allocations: 16.53 kB / 422.7 MB, free: 2.035 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.969e-05/0.6409, allocations: 43.12 kB / 422.8 MB, free: 1.98 MB / 334.1 MB Notification: Performance of pre-optimization done (n=69): time 5.1e-06/0.641, allocations: 0 / 422.8 MB, free: 1.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=73): time 0.008595/0.6496, allocations: 2.271 MB / 425 MB, free: 15.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.811e-05/0.6497, allocations: 64 kB / 425.1 MB, free: 15.58 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001639/0.6514, allocations: 0.6018 MB / 425.7 MB, free: 14.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001688/0.6516, allocations: 45.7 kB / 425.7 MB, free: 14.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005213/0.6521, allocations: 435.3 kB / 426.2 MB, free: 14.49 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003956/0.6525, allocations: 264.2 kB / 426.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005049/0.6531, allocations: 150.6 kB / 426.6 MB, free: 14.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002734/0.6533, allocations: 382.8 kB / 426.9 MB, free: 13.69 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001257/0.6546, allocations: 321.9 kB / 427.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001422/0.6561, allocations: 476.5 kB / 427.7 MB, free: 12.86 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002689/0.6588, allocations: 0.8086 MB / 428.5 MB, free: 12 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.404e-06/0.6588, allocations: 0 / 428.5 MB, free: 12 MB / 350.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.004125/0.663, allocations: 1.118 MB / 429.6 MB, free: 10.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.349e-05/0.663, allocations: 8 kB / 429.6 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.001e-05/0.6631, allocations: 4 kB / 429.7 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001017/0.6641, allocations: 188.7 kB / 429.8 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001758/0.6659, allocations: 203.7 kB / 430 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006568/0.6725, allocations: 2.884 MB / 432.9 MB, free: 7.461 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001388/0.6739, allocations: 32.05 kB / 433 MB, free: 7.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002445/0.6742, allocations: 35.98 kB / 433 MB, free: 7.395 MB / 350.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.0008356/0.6751, allocations: 233.6 kB / 433.2 MB, free: 7.156 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003592/0.6754, allocations: 83 kB / 433.3 MB, free: 7.074 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003605/0.6758, allocations: 95.25 kB / 433.4 MB, free: 6.977 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.253e-05/0.6758, allocations: 4 kB / 433.4 MB, free: 6.973 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.662e-05/0.6759, allocations: 11.98 kB / 433.4 MB, free: 6.961 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.474e-05/0.6759, allocations: 0 / 433.4 MB, free: 6.961 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002246/0.6782, allocations: 0.8923 MB / 434.3 MB, free: 6.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-05/0.6782, allocations: 0 / 434.3 MB, free: 6.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001403/0.6796, allocations: 143.8 kB / 434.4 MB, free: 5.879 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001073/0.6807, allocations: 187.1 kB / 434.6 MB, free: 5.695 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001473/0.6809, allocations: 23.98 kB / 434.6 MB, free: 5.672 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00656/0.6875, allocations: 2.881 MB / 437.5 MB, free: 2.652 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.6875, allocations: 4 kB / 437.5 MB, free: 2.648 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004417/0.692, allocations: 1.431 MB / 439 MB, free: 1.195 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000352/0.6924, allocations: 144.2 kB / 439.1 MB, free: 1.035 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002135/0.6926, allocations: 12 kB / 439.1 MB, free: 1.023 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001037/0.6937, allocations: 59.95 kB / 439.2 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002017/0.6939, allocations: 52.58 kB / 439.2 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001001/0.694, allocations: 19.98 kB / 439.2 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000845/0.6948, allocations: 431.1 kB / 439.7 MB, free: 484 kB / 350.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.6949, allocations: 4 kB / 439.7 MB, free: 480 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.001357/0.6962, allocations: 240.2 kB / 439.9 MB, free: 240 kB / 350.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.004504/0.7007, allocations: 2.021 MB / 441.9 MB, free: 14.19 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003406/0.7042, allocations: 1.041 MB / 443 MB, free: 13.13 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.887e-06/0.7042, allocations: 0.8125 kB / 443 MB, free: 13.13 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002205/0.7064, allocations: 0.6465 MB / 443.6 MB, free: 12.48 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001495/0.708, allocations: 139.1 kB / 443.7 MB, free: 12.34 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0211/0.7291, allocations: 7.423 MB / 451.2 MB, free: 4.691 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001196/0.7304, allocations: 0.9814 MB / 452.1 MB, free: 3.684 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0008912/0.7313, allocations: 93.47 kB / 452.2 MB, free: 3.59 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008708/0.7322, allocations: 323.3 kB / 452.6 MB, free: 3.273 MB / 366.1 MB Notification: Performance of SimCode: time 2.144e-06/0.7322, allocations: 0 / 452.6 MB, free: 3.273 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1814/0.9137, allocations: 19.35 MB / 471.9 MB, free: 188 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.13/14.04, allocations: 14.69 kB / 471.9 MB, free: 180 kB / 382.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_DifferenceAmplifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_DifferenceAmplifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1)